-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
74 lines (70 loc) · 2.01 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"parser": "babel-eslint",
"rules": {
// Best practises.
"curly": "warn",
"dot-notation": "warn",
"eqeqeq": "warn",
"no-multi-spaces": "warn",
"no-self-compare": "warn",
"no-unused-expressions": "warn",
"no-useless-concat": "warn",
"no-useless-return": "warn",
"no-useless-escape": "warn",
"yoda": "warn",
// Variables
"no-unused-vars": "warn",
// Stylistic
"array-bracket-spacing": "warn",
"block-spacing": "warn",
"brace-style": "warn",
"camelcase": "warn",
"capitalized-comments": "warn",
"comma-dangle": ["warn", {
"arrays": "always-multiline",
"objects": "always-multiline"
}],
"comma-spacing": "warn",
"comma-style": "warn",
"computed-property-spacing": "warn",
"eol-last": "warn",
"func-names": "warn",
"indent": ["warn", 4, {
"SwitchCase": 1
}],
"jsx-quotes": "warn",
"key-spacing": "warn",
"keyword-spacing": "warn",
"max-len": "warn",
"new-parens": "warn",
"no-bitwise": "warn",
"no-multiple-empty-lines": "warn",
"no-trailing-spaces": "warn",
"no-whitespace-before-property": "warn",
"object-curly-newline": "warn",
"object-curly-spacing": "warn",
"quotes": "warn",
// "require-jsdoc": "warn",
//ECMAScript6
"no-duplicate-imports": "warn",
"no-var": "warn",
"prefer-const": "warn",
"prefer-rest-params": "warn",
"prefer-spread": "warn",
"prefer-template": "warn",
"sort-imports": "warn",
"template-curly-spacing": "warn",
// React
"react/jsx-sort-props": "warn",
"react/prop-types": "off"
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
]
}