Skip to content

Commit a120175

Browse files
committed
feat: add a few more rules
1 parent 294bf87 commit a120175

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

index.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
node: true
77
},
88
parserOptions: {
9-
ecmaVersion: '2015',
9+
ecmaVersion: '2016',
1010
sourceType: 'script'
1111
},
1212
extends: 'eslint:recommended',
@@ -76,6 +76,21 @@ module.exports = {
7676
'dot-location': ['error', 'property'],
7777
'dot-notation': 'error',
7878
'eqeqeq': ['error', 'allow-null'],
79+
'guard-for-in': 'off',
80+
'no-alert': 'error',
81+
'no-caller': 'error',
82+
'no-case-declarations': 'error',
83+
'no-div-regex': 'error',
84+
'no-else-return': 'off', // todo enable?
85+
'no-empty-function': 'warn',
86+
'no-empty-pattern': 'error',
87+
'no-eq-null': 'off',
88+
'no-eval': 'warn',
89+
'no-extend-native': 'error',
90+
'no-extra-bind': 'error',
91+
'no-extra-label': 'error',
92+
'no-fallthrough': 'error',
93+
7994
// todo continue the list
8095

8196
'array-bracket-spacing': ['error', 'never'],
@@ -92,7 +107,6 @@ module.exports = {
92107
'new-parens': 'error',
93108
'no-array-constructor': 'error',
94109
'no-delete-var': 'error',
95-
'no-extra-label': 'error',
96110
'no-label-var': 'error',
97111
'no-lone-blocks': 'error',
98112
'no-mixed-spaces-and-tabs': 'error',

0 commit comments

Comments
 (0)