-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc
40 lines (40 loc) · 1008 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
{
"parser": "babel-eslint",
"env": {
"es6": true,
"jest": true,
"browser": true
},
"parserOptions": {
"ecmaversion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"extends": ["eslint:recommended", "plugin:react/recommended", "standard"],
"plugins": [
"react"
],
"rules": {
"indent": [0, "tab"],
"no-tabs": 0,
"no-console": [2, {"allow": ["warn", "error"]}],
"comma-dangle" : [2, "always-multiline"],
"semi": [2, "never"],
"no-extra-semi": 2,
"jsx-quotes": [2, "prefer-single"],
"react/jsx-boolean-value": [2, "always"],
"react/jsx-closing-bracket-location": [2, {"selfClosing": "after-props", "nonEmpty": "after-props"}],
"react/jsx-curly-spacing": [2, "never", {"allowMultiline": false}],
"react/jsx-max-props-per-line": [2, {"maximum": 3}],
"react/jsx-no-literals": 2,
"react/no-is-mounted": 0,
"react/self-closing-comp": ["error", {
"component": true,
"html": false
}],
"react/sort-comp": 2
}
}