-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
53 lines (53 loc) · 1.3 KB
/
.eslintrc
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
{
"root": true,
"env": {
"es6": true,
"browser": true
},
"plugins": ["react"],
"extends": ["eslint:recommended", "plugin:react/recommended"],
"settings": {
"react": {
"version": "detect"
}
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"max-len": [2, {"code": 120}],
"no-trailing-spaces": 2,
"no-multi-spaces": 2,
"quotes": [2, "double", {"avoidEscape": true}],
"semi": [2, "always"],
"camelcase": [2, {"properties": "always"}],
"prefer-const": 2,
"key-spacing": 2,
"jsx-quotes": [2, "prefer-double"],
"arrow-parens": [2],
"arrow-spacing": 2,
"object-shorthand": 2,
"object-curly-spacing": 2,
"template-curly-spacing": 2,
"space-in-parens": 2,
"prefer-template": 2,
"react/jsx-filename-extension": 0,
"react/prop-types": 0,
"react/jsx-curly-spacing": 2,
"react/jsx-tag-spacing": [2, {
"closingSlash": "never",
"beforeSelfClosing": "never",
"afterOpening": "never",
"beforeClosing": "never"
}],
"react/jsx-props-no-multi-spaces": 2,
"react/jsx-curly-brace-presence": 2,
"react/jsx-indent-props": [2, "first"],
"react/jsx-boolean-value": 2
}
}