-
Notifications
You must be signed in to change notification settings - Fork 31
/
.eslintrc.json
36 lines (36 loc) · 1.07 KB
/
.eslintrc.json
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
{
"extends": ["airbnb", "prettier", "prettier/react"],
"plugins": ["react", "jsx-a11y", "import"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"rules": {
"import/no-unresolved": "off",
"no-prototype-builtins": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/jsx-props-no-spreading": "off",
"react/prop-types": [2],
"react/no-did-mount-set-state": "off",
"react/destructuring-assignment": "off",
"react/static-property-placement": "off",
"react/state-in-constructor": "off",
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["to", "hrefLeft", "hrefRight"],
"aspects": ["noHref", "invalidHref", "preferButton"]
}
]
}
}