diff options
author | Anton Tananaev <anton@traccar.org> | 2023-09-04 11:19:14 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-09-04 11:19:14 -0700 |
commit | 20b0ba8231cdb0a6f80801dff0c3c49319c5848f (patch) | |
tree | d024200cbeaf8124e1ceffb4f409a5bb55b41d4d | |
parent | 45cbd462df7f41739d52f4fb326a87693257e973 (diff) | |
download | trackermap-web-20b0ba8231cdb0a6f80801dff0c3c49319c5848f.tar.gz trackermap-web-20b0ba8231cdb0a6f80801dff0c3c49319c5848f.tar.bz2 trackermap-web-20b0ba8231cdb0a6f80801dff0c3c49319c5848f.zip |
Update lint rules
-rw-r--r-- | modern/.eslintrc.js | 15 |
1 files changed, 5 insertions, 10 deletions
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], }, }; |