Skip to content

Commit

Permalink
Merge pull request #64 from Turbo87/eslint
Browse files Browse the repository at this point in the history
Import ESLint config from eslint-config-simplabs
  • Loading branch information
~ape authored Jan 27, 2017
2 parents fc9011c + d3d2317 commit 7167a3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 39 deletions.
40 changes: 1 addition & 39 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,42 +1,4 @@
module.exports = {
root: true,
env: {
node: true
},
extends: 'eslint:recommended',
rules: {
// --- Possible Errors ---

'no-template-curly-in-string': 'error',
'no-unsafe-negation': 'error',

// --- Best Practices ---

'curly': 'error',
'eqeqeq': 'error',
'no-eval': 'error',
'no-extra-bind': 'error',
'no-implicit-coercion': 'error',
'no-implied-eval': 'error',
'no-multi-spaces': 'error',
'no-new-func': 'error',
'no-new-wrappers': 'error',
'no-new': 'error',
'no-return-assign': 'error',
'no-return-await': 'error',
'no-sequences': 'error',
'no-throw-literal': 'error',
'no-unused-expressions': 'error',
'no-useless-call': 'error',
'no-useless-concat': 'error',
'no-useless-escape': 'error',
'no-void': 'error',
'no-with': 'error',
'require-await': 'error',
'yoda': 'error',

// --- Variables ---

'no-use-before-define': ['error', 'nofunc']
}
extends: 'simplabs',
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"ember-resolver": "^2.0.3",
"ember-source": "^2.11.0",
"eslint": "^3.12.2",
"eslint-config-simplabs": "^0.1.0",
"loader.js": "^4.0.10",
"mocha": "^3.2.0"
},
Expand Down

0 comments on commit 7167a3c

Please sign in to comment.