Skip to content

Commit 70babce

Browse files
committed
Update .eslintrc.js
1 parent c888284 commit 70babce

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: .eslintrc.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ module.exports = {
3131
curly: ['error', 'all'],
3232
eqeqeq: ['error', 'smart'],
3333
'func-names': ['warn', 'as-needed'],
34+
'guard-for-in': 'warn',
3435
indent: ['error', 4, {
3536
VariableDeclarator: 'first',
3637
SwitchCase: 1
@@ -39,15 +40,19 @@ module.exports = {
3940
code: 140,
4041
ignoreComments: true
4142
}],
43+
'new-cap': 'warn',
4244
'no-continue': 'warn',
45+
'no-global-assign': 'warn',
4346
'no-new': 'warn',
4447
'no-param-reassign': 'warn',
45-
'no-plusplus': ['error', {
48+
'no-plusplus': ['warn', {
4649
allowForLoopAfterthoughts: true
4750
}],
51+
'no-restricted-syntax': 'warn',
4852
'no-underscore-dangle': 'warn',
4953
'no-unused-vars': ['error', { args: 'none' }],
5054
'no-use-before-define': ['error', 'nofunc'],
55+
'no-useless-escape': 'warn',
5156
'object-shorthand': ['error', 'consistent'],
5257
'one-var': ['error', 'consecutive'],
5358
'prefer-arrow-callback': 'warn',

0 commit comments

Comments
 (0)