-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
81 lines (81 loc) · 2.06 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"extends": "airbnb",
"parser": "babel-eslint",
"settings": {
"import/resolver": {
"babel-module": {
"root": ["./src"]
}
}
},
"env": {
"es6": true,
"browser": true,
"jest": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"globals": {
"ReactDOM": false,
"React": false
},
"plugins": ["react"],
"rules": {
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"import/prefer-default-export": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/label-has-for": "off",
"linebreak-style": 0,
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": [
"warn",
{
"aspects": ["invalidHref"]
}
],
"no-console": [
2,
{
"allow": ["warn", "error"]
}
],
"comma-dangle": ["error", "never"],
"semi": [2, "always"],
"no-extra-semi": 2,
"react/jsx-one-expression-per-line": "off",
"react/jsx-max-props-per-line": [
2,
{
"maximum": 3
}
],
"react/forbid-prop-types": [0],
"arrow-body-style": "off",
"no-underscore-dangle": "off",
"no-param-reassign": [2, { "props": false }],
"eol-last": ["error", "always"],
"react/jsx-no-literals": "off",
"import/no-dynamic-require": "off",
"global-require": "off",
"react/react-in-jsx-scope": "off",
"import/no-absolute-path": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"quotes": [2, "double", "avoid-escape"],
"arrow-parens": "off",
"react/jsx-fragments": "off",
"operator-linebreak": "off",
"react/jsx-curly-newline": "off",
"react/state-in-constructor": "off",
"react/static-property-placement": "off",
"react/jsx-props-no-spreading": "off",
"jsx-a11y/control-has-associated-label": "off"
}
}