-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
46 lines (46 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
42
43
44
45
46
module.exports = {
root: true,
env: {
browser: true,
es6: true,
},
parser: '@babel/eslint-parser',
parserOptions: { babelOptions: { configFile: './babel.config.js' } },
extends: ['airbnb', 'airbnb/hooks', 'plugin:react/recommended'],
plugins: [
'react',
],
rules: {
'import/no-extraneous-dependencies': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'nonblock-statement-body-position': 'off',
curly: 'off',
'max-len': 'off',
'no-nested-ternary': 'off',
'no-restricted-syntax': 'off',
'arrow-body-style': 'off',
'react/no-array-index-key': 'off',
'no-plusplus': 'off',
'consistent-return': 'off',
'newline-per-chained-call': 'off',
'no-underscore-dangle': 'off',
'react/jsx-props-no-spreading': 'off',
'no-alert': 'off',
'no-else-return': 'off',
'jsx-a11y/label-has-associated-control': 'off',
'react/jsx-one-expression-per-line': 'off',
'no-param-reassign': 'off',
'react/no-unescaped-entities': 'off',
'no-console': 'off',
'react/jsx-indent': ['error', 2, { checkAttributes: true, indentLogicalExpressions: true }],
'react/require-default-props': 'off',
'react/jsx-filename-extension': 'off',
'import/extensions': 'off',
'no-shadow': 'off',
'global-require': 'off',
'object-curly-newline': ['error', { minProperties: 5, multiline: true, consistent: true }],
'react/forbid-prop-types': 'off',
'func-names': 'off',
'react/display-name': 'off',
},
};