-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
41 lines (41 loc) · 1.17 KB
/
.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
34
35
36
37
38
39
40
41
{
"parser": "babel-eslint",
"extends": "airbnb",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true,
"mocha": true
},
"plugins": [
"react",
"jsx-a11y",
"import"
],
"rules": {
"comma-dangle": ["error", "always-multiline"],
"func-names": ["error", "as-needed"],
"no-plusplus": "off",
"no-underscore-dangle": ["error", { "allow": ["__typename"] }],
"arrow-parens": ["error", "always"],
"arrow-body-style": ["error", "as-needed"],
"react/prop-types": ["error", { "ignore": ["children", "className"] }],
"react/require-default-props": "off",
"react/jsx-no-target-blank": "error",
"react/jsx-filename-extension": ["warn", { "extensions": [".js"] }],
"react/jsx-closing-bracket-location": ["error", "tag-aligned"],
"import/no-unresolved": "off",
"import/extensions": ["error", "never", { "graphql": "always" }],
"import/no-absolute-path": "off",
"import/no-extraneous-dependencies": "off",
"import/no-named-as-default": "off"
}
}