/
.eslintrc.js
40 lines (40 loc) · 1.04 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
module.exports = {
'env': {
'browser': true,
'es6': true,
'node': true
},
'extends': [
'eslint:recommended',
'plugin:react/recommended',
'airbnb'
],
'parser': 'babel-eslint',
'globals': {
'Atomics': 'readonly',
'SharedArrayBuffer': 'readonly'
},
'parserOptions': {
'ecmaFeatures': {
'jsx': true
},
'ecmaVersion': 2018,
'sourceType': 'module'
},
'plugins': [
'react'
],
'rules': {
'no-console': 'error',
'no-plusplus': 'off',
'indent': ['error', 4, { 'SwitchCase': 1 }],
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'react/jsx-indent': [2, 4],
'react/jsx-indent-props': ['error', 'first'],
'react/jsx-props-no-spreading': 'off',
'react/prop-types': 'off',
'react/jsx-one-expression-per-line': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-a11y/anchor-is-valid': 'off',
}
};