-
Notifications
You must be signed in to change notification settings - Fork 80
/
.eslintrc
56 lines (56 loc) · 1.48 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
54
55
56
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true
},
"parser": "babel-eslint",
"rules": {
"comma-dangle": ["warn", "always-multiline"],
"constructor-super": "error",
"jsx-quotes": "warn",
"linebreak-style": ["error", "unix"],
"no-class-assign": "error",
"no-const-assign": "error",
"no-console": "off",
"no-dupe-class-members": "error",
"no-this-before-super": "error",
"no-unused-vars": ["error", {"args": "none"}],
"no-var": "warn",
"prefer-spread": "warn",
"prefer-template": "warn",
"quotes": ["error", "single"],
"require-yield": "error",
"semi": "error",
"babel/arrow-parens": "warn",
"babel/generator-star-spacing": "warn",
"babel/object-shorthand": "warn",
"babel/no-await-in-loop": "warn",
"react/jsx-curly-spacing": "warn",
"react/jsx-max-props-per-line": ["warn", {"maximum": 3}],
"react/jsx-no-duplicate-props": "warn",
"react/jsx-no-undef": "warn",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/jsx-wrap-multilines": "warn",
"react/no-direct-mutation-state": "warn",
"react/prop-types": "warn",
"react/react-in-jsx-scope": "error",
"react/self-closing-comp": "warn",
"react/sort-comp": "warn"
},
"plugins": [
"babel",
"react"
],
"globals": {
"__DEV__": true
}
}