forked from GSA/code-gov-front-end
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
94 lines (94 loc) · 2.11 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
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"extends": [
"airbnb",
"prettier",
"prettier/react"
],
"globals": {
"document": true,
"window": true
},
"env": {
"jest": true
},
"parser": "babel-eslint",
"plugins": [
"prettier"
],
"rules": {
"camelcase": "warn",
"class-methods-use-this": "warn",
"comma-dangle": 0,
"consistent-return": [
"warn",
{
"treatUndefinedAsUnspecified": true
}
],
"getter-return": 0,
"guard-for-in": "warn",
"import/extensions": "ignorePackages",
"import/imports-first": [
"absolute-first",
"error"
],
"import/newline-after-import": "error",
"import/no-unresolved": 0,
"import/prefer-default-export": false,
"jsx-a11y/anchor-is-valid": "warn",
"jsx-a11y/click-events-have-key-events": "warn",
"jsx-a11y/no-noninteractive-tabindex": "warn",
"jsx-a11y/no-static-element-interactions": "warn",
"jsx-a11y/tabindex-no-positive": "warn",
"no-bitwise": "warn",
"no-case-declarations": "warn",
"no-console": "off",
"no-param-reassign": [
"warn",
{
"props": false
}
],
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"no-restricted-syntax": [
"error",
"BinaryExpression[operator='in']",
"WithStatement"
],
"no-script-url": "warn",
"no-shadow": "warn",
"no-template-curly-in-string": "warn",
"no-undef": "warn",
"no-underscore-dangle": 0,
"no-useless-constructor": "warn",
"no-unused-vars": 0,
"prefer-destructuring": 0,
"react/button-has-type": "never",
"react/destructuring-assignment": "never",
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx"
]
}
],
"react/jsx-no-bind": "never",
"react/prefer-stateless-function": [
"warn",
{ "ignorePureComponents": true
}
],
"react/no-access-state-in-setstate": "warn",
"react/no-did-update-set-state": "never",
"react/no-string-refs": "warn",
"react/prop-types": 0,
"semi": [2, "never"]
}
}