-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
33 lines (33 loc) · 950 Bytes
/
.eslintrc.json
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
{
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parser": "babel-eslint",
"plugins": [
"react"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true,
"experimentalObjectRestSpread": true
}
},
"rules": {
"react/display-name": 2,
"react/prefer-stateless-function": [0, { "ignorePureComponents": true }],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/jsx-one-expression-per-line": [0, { "allow": "single-child" }],
"react/destructuring-assignment": [0, "always", { "ignoreClassFields": true }],
"comma-dangle": ["error", "never"],
"arrow-body-style": [0, "always"],
"no-console": 0,
"object-shorthand": [0, "always"],
"no-nonoctal-decimal-escape": 0,
"no-unsafe-optional-chaining": 0,
"no-comma-dangle": [0, "always-multiline"]
}
}