Skip to content

Commit

Permalink
feat: add a few more rules
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Dec 8, 2016
1 parent 294bf87 commit a120175
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
node: true
},
parserOptions: {
ecmaVersion: '2015',
ecmaVersion: '2016',
sourceType: 'script'
},
extends: 'eslint:recommended',
Expand Down Expand Up @@ -76,6 +76,21 @@ module.exports = {
'dot-location': ['error', 'property'],
'dot-notation': 'error',
'eqeqeq': ['error', 'allow-null'],
'guard-for-in': 'off',
'no-alert': 'error',
'no-caller': 'error',
'no-case-declarations': 'error',
'no-div-regex': 'error',
'no-else-return': 'off', // todo enable?
'no-empty-function': 'warn',
'no-empty-pattern': 'error',
'no-eq-null': 'off',
'no-eval': 'warn',
'no-extend-native': 'error',
'no-extra-bind': 'error',
'no-extra-label': 'error',
'no-fallthrough': 'error',

// todo continue the list

'array-bracket-spacing': ['error', 'never'],
Expand All @@ -92,7 +107,6 @@ module.exports = {
'new-parens': 'error',
'no-array-constructor': 'error',
'no-delete-var': 'error',
'no-extra-label': 'error',
'no-label-var': 'error',
'no-lone-blocks': 'error',
'no-mixed-spaces-and-tabs': 'error',
Expand Down

0 comments on commit a120175

Please sign in to comment.