From 20b0ba8231cdb0a6f80801dff0c3c49319c5848f Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 4 Sep 2023 11:19:14 -0700 Subject: Update lint rules --- modern/.eslintrc.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'modern') diff --git a/modern/.eslintrc.js b/modern/.eslintrc.js index 660f322b..79a95b6f 100644 --- a/modern/.eslintrc.js +++ b/modern/.eslintrc.js @@ -6,26 +6,21 @@ module.exports = { plugins: [ 'react', ], - ignorePatterns: ['switcher.js', 'theme.js'], + ignorePatterns: ['build/', 'switcher.js', 'theme.js'], rules: { 'max-len': [0], - 'no-shadow': [0], - 'no-return-assign': [0], 'no-param-reassign': [0], 'no-prototype-builtins': [0], - 'no-nested-ternary': [0], - 'operator-linebreak': [0], - 'import/no-unresolved': [0], 'object-curly-newline': [1, { ObjectExpression: { minProperties: 8, multiline: true, consistent: true }, ObjectPattern: { minProperties: 8, multiline: true, consistent: true }, ImportDeclaration: { minProperties: 4, multiline: true, consistent: true }, ExportDeclaration: { minProperties: 4, multiline: true, consistent: true }, }], - 'react/jsx-filename-extension': [1, { extensions: ['.js'] }], - 'react/function-component-definition': [1, { namedComponents: 'arrow-function', unnamedComponents: 'arrow-function' }], + 'react/function-component-definition': [1, { + namedComponents: 'arrow-function', + unnamedComponents: 'arrow-function', + }], 'react/prop-types': [0], - 'react/jsx-props-no-spreading': [0], - 'jsx-a11y/anchor-is-valid': [0], }, }; -- cgit v1.2.3