-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc
41 lines (41 loc) · 902 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
{
"parser": "@babel/eslint-parser",
"extends": "airbnb",
"plugins": [
"react",
"jsx-a11y",
"import"
],
"env": {
"browser": true,
"es6": true,
"node": true,
"mocha": true
},
"rules": {
"quotes": [
2,
"single"
],
"eqeqeq": [
2,
"smart"
],
"quote-props": 0,
"react/prefer-stateless-function": [1],
"react/jsx-no-bind": "off",
"react/jsx-boolean-value": "off",
"keyword-spacing": 2,
"no-console": 1,
"no-underscore-dangle": 0,
// specify the maximum length of a line in your program
// https://github.com/eslint/eslint/blob/master/docs/rules/max-len.md
"max-len": [1, 120, 2, {
"ignoreUrls": true,
"ignoreComments": false
}],
"comma-dangle": "off",
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }]
}
}