forked from CityOfBoston/311-description-crowdsource
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
37 lines (37 loc) · 813 Bytes
/
.eslintrc.js
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
module.exports = {
"parser": "babel-eslint",
"env": {
"browser": true,
"jest": true,
"es6": true,
"node": true
},
"plugins": [
"flowtype",
"import",
"react",
"prettier",
"jsx-a11y"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:flowtype/recommended",
"plugin:jsx-a11y/recommended",
"prettier",
"prettier/flowtype",
"prettier/react"
],
"rules": {
// Trips up with next/link, which adds the href automatically
"jsx-a11y/anchor-is-valid": 0,
// Seems broken in v6.0.0
"jsx-a11y/label-has-for": 0,
// IE9+10 don't have the value set when onInput fires
"jsx-a11y/no-onchange": 0,
"prettier/prettier": ["error", {
"singleQuote": true,
"trailingComma": "es5"
}]
}
};