-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
61 lines (61 loc) · 1.83 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = {
env: {
browser: true,
es2021: true,
jest: true,
},
extends: ['plugin:react/recommended', 'airbnb', 'prettier', 'prettier/react'],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
plugins: ['react', 'jsx-a11y', 'import'],
rules: {
'linebreak-style': 0,
'lines-between-class-members': [
'error',
'always',
{ exceptAfterSingleLine: true },
],
semi: [2, 'never'],
'comma-dangle': [0, 'never'],
'max-len': 0,
'arrow-body-style': 0,
'global-require': 0,
'no-confusing-arrow': 0,
'no-underscore-dangle': ['error', { allowAfterThis: true }],
'no-unused-expressions': 0,
'no-unused-vars': [2, { ignoreRestSiblings: true }],
'no-param-reassign': ['error', { props: false }],
'no-shadow': 0,
'import/no-dynamic-require': 0,
'import/no-extraneous-dependencies': 0,
'import/prefer-default-export': 0,
'import/no-unresolved': 0,
'react/require-default-props': 0,
'react/forbid-prop-types': 0,
'react/default-props-match-prop-types': 0,
'react/jsx-props-no-spreading': 0,
'jsx-a11y/anchor-is-valid': [
2,
{
components: ['Link'],
specialLink: ['hrefLeft', 'hrefRight', 'to'],
aspects: ['noHref', 'invalidHref', 'preferButton'],
},
],
'react/destructuring-assignment': [0, 'never'],
'import/no-useless-path-segments': [0, 'never'],
'operator-linebreak': [0, 'never'],
'no-else-return': [0, 'never'],
'import/extensions': [0, 'never'],
'react/button-has-type': [0, 'never'],
'react/jsx-curly-newline': [1, 'consistent'],
'react/jsx-filename-extension': [2, { extensions: ['.js', '.jsx'] }],
'react/jsx-one-expression-per-line': [0, 'never'],
'react/jsx-wrap-multilines': [0, 'never'],
},
}