-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
57 lines (57 loc) · 1.68 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
module.exports = {
env: {
browser: true,
es6: true,
},
extends: ['airbnb', 'prettier', 'prettier/react'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: 'babel-eslint',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['react', 'prettier'],
rules: {
'prettier/prettier': ['error', { endOfLine: 'auto' }],
'react/jsx-filename-extension': ['warn', { extensions: ['.jsx', '.js'] }],
'import/prefer-default-export': 'off',
'react/jsx-props-no-spreading': 'off',
'react/prop-types': 'off',
camelcase: 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
radix: 'off',
'no-plusplus': 'off',
'no-shadow': 'off',
'no-restricted-syntax': 'off',
'guard-for-in': 'off',
'prefer-const': 'off',
'no-nested-ternary': 'off',
'no-restricted-globals': 'off',
'react/button-has-type': 'off',
'react/no-unused-state': 'off',
'react/prefer-stateless-function': 'off',
'react/static-property-placement': 'off',
'react/default-props-match-prop-types': 'off',
'react/require-default-props': 'off',
'jsx-a11y/alt-text': 'off',
'no-param-reassign': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'no-return-assign': 'off',
'react/jsx-no-target-blank': 'off',
'jsx-a11y/label-has-associated-control': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'react/state-in-constructor': 'off',
'no-unused-expressions': 'off',
'no-useless-catch': 'off',
'new-cap': 'off',
'no-new': 'off',
'no-undef': 'off',
},
};