-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
52 lines (52 loc) · 1.26 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
module.exports = {
env: {
browser: true,
es6: true,
jest: true,
},
extends: ['plugin:react/recommended',
'airbnb-base',
'airbnb/rules/react'
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: "babel-eslint",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['react'],
rules: {
indent: [2],
'eol-last': ['error', 'always'],
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'global-require': 0,
'jsx-a11y/alt-text': 0,
'react/prop-types': 0,
'react/destructuring-assignment': 0,
'import/no-named-as-default': 0,
'import/no-named-as-default-member': 0,
'no-nested-ternary': 0,
'react/jsx-props-no-spreading': 0,
"no-unused-expressions": 0,
"no-useless-return": 0,
"jsx-a11y/anchor-is-valid": 0,
"react/button-has-type": 0,
"no-undef": 0,
"import/no-extraneous-dependencies": 0,
"react/no-access-state-in-setstate": 0,
"react/no-did-update-set-state": 0,
"consistent-return": 0,
"no-unused-vars": 0,
"no-alert": 0,
"eqeqeq": 0,
"react/forbid-prop-types": 0,
"react/state-in-constructor": 0,
"no-shadow": 0
},
};