-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
41 lines (41 loc) · 1.46 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
module.exports = {
root: true,
env: { es6: true, browser: true },
parser: '@babel/eslint-parser',
parserOptions: { ecmaVersion: 8 },
extends: ['eslint:recommended', 'plugin:import/errors', 'plugin:import/warnings', 'airbnb', 'prettier'],
plugins: ['import', 'prettier'],
rules: {
'max-len': ['warn', 120],
'comma-dangle': 'off',
'prefer-const': 'warn',
'camelcase': 'off',
'no-nested-ternary': 'off',
'no-plusplus': 'off',
'no-restricted-globals': 'off',
'arrow-parens': ['error', 'always'],
'function-paren-newline': ['error', 'consistent'],
'object-curly-newline': ['error', { consistent: true, multiline: true }],
'global-require': 'off',
'radix': 'off',
'quotes': ['error', 'single', 'avoid-escape'],
'quote-props': ['error', 'consistent'],
'import/no-unresolved': [
'error',
{
ignore: ['redux-rest-resource', 'mdi-react'],
},
],
'react/jsx-filename-extension': ['error', { extensions: ['.js'] }],
'react/react-in-jsx-scope': 'off',
'react/jsx-one-expression-per-line': 'off',
'react/jsx-closing-tag-location': 'off',
'react/destructuring-assignment': 'off',
'react/button-has-type': 'off',
'react/state-in-constructor': 'off',
'react/static-property-placement': 'off',
'jsx-a11y/anchor-is-valid': ['error', { aspects: ['invalidHref', 'preferButton'] }],
'jsx-a11y/label-has-for': 'off',
'jsx-a11y/label-has-associated-control': 'off',
},
};