-
Notifications
You must be signed in to change notification settings - Fork 11
/
.eslintrc
48 lines (48 loc) · 1.05 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
{
"env": {
"es6": true,
"node": true,
"browser": true
},
"extends": "airbnb",
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true,
"modules": true
},
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"never"
],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/require-extension": "off",
"arrow-parens": ["error", "as-needed"],
"quote-props": ["error", "consistent"],
"object-shorthand": ["error", "consistent"],
"class-methods-use-this": [0],
"func-names": ["error", "as-needed"],
"import/prefer-default-export": [0]
}
}