-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
50 lines (50 loc) · 1007 Bytes
/
.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
module.exports = {
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals":{
"document": true,
"localStorage": true,
"window": true,
"require": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"no-console": 1,
"no-var": 0,
"semi": 0,
"no-irregular-whitespace": 1,
"no-trailing-spaces": 2,
"eol-last": 1,
"no-func-assign": 2,
"no-redeclare": 2,
"no-spaced-func": 2,
"no-undef": 2,
"no-use-before-define": 2,
"no-mixed-spaces-and-tabs": 0,
"quotes": [
2,
"single"
],
// "react/jsx-indent": [2, 'tab'],
// "react/jsx-closing-tag-location": 1,
'react/jsx-closing-bracket-location': [1, 'after-props'],
"react/jsx-indent-props": [2, 'first']
}
};