From 5dbf12469ee6f816ceb45403030828ce0e1a5bcd Mon Sep 17 00:00:00 2001 From: Jim Graham Date: Tue, 29 Oct 2024 02:28:37 -0400 Subject: [PATCH] Update .eslintrc.js --- .eslintrc.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 9c3b37adfb..fdcbea474f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -31,6 +31,7 @@ module.exports = { curly: ['error', 'all'], eqeqeq: ['error', 'smart'], 'func-names': ['warn', 'as-needed'], + 'guard-for-in': 'warn', indent: ['error', 4, { VariableDeclarator: 'first', SwitchCase: 1 @@ -39,15 +40,19 @@ module.exports = { code: 140, ignoreComments: true }], + 'new-cap': 'warn', 'no-continue': 'warn', + 'no-global-assign': 'warn', 'no-new': 'warn', 'no-param-reassign': 'warn', - 'no-plusplus': ['error', { + 'no-plusplus': ['warn', { allowForLoopAfterthoughts: true }], + 'no-restricted-syntax': 'warn', 'no-underscore-dangle': 'warn', 'no-unused-vars': ['error', { args: 'none' }], 'no-use-before-define': ['error', 'nofunc'], + 'no-useless-escape': 'warn', 'object-shorthand': ['error', 'consistent'], 'one-var': ['error', 'consecutive'], 'prefer-arrow-callback': 'warn',