-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
43 lines (37 loc) · 976 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
42
43
{
"plugins": [
"react",
"jsx-a11y"
],
"parser": "babel-eslint",
"env": {
"browser": true,
"jest": true
},
"globals": {
"document": false
},
"extends": [
"airbnb",
"eslint:recommended",
"plugin:react/recommended"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"semi": [2, "always"],
"react/jsx-indent": [2, 2],
// "jsx-quotes": [2, "prefer-single"],
"react/prefer-stateless-function": "warn",
"space-before-function-paren": [2, "always"],
"comma-dangle": [2, "never"],
"react/jsx-closing-bracket-location": [2, "after-props"],
"no-underscore-dangle": [2, {"allow": ["_id"]}],
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }],
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}]
}
}