-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
41 lines (40 loc) · 1011 Bytes
/
.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
{
"root": true,
"plugins": [
"react"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"mocha": true
},
"rules": {
"no-console": "warn",
"comma-dangle": ["warn", "always-multiline"],
"no-mixed-spaces-and-tabs": "error",
"no-trailing-spaces": "warn",
"quotes": ["warn", "double", { "allowTemplateLiterals": true }],
"semi": ["warn", "never"],
"react/prefer-es6-class": "warn",
"react/prefer-stateless-function": "warn",
"react/prop-types": "warn",
"react/no-unused-prop-types": "warn",
"react/jsx-first-prop-new-line": ["warn", "multiline"],
"react/jsx-indent-props": ["warn", 2],
"react/jsx-key": "error"
}
}