-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
30 lines (30 loc) · 976 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
module.exports = {
'env': {
'browser': true
},
"extends": "airbnb",
"parser": "babel-eslint",
"rules": {
'max-len': 'off',
"jsx-a11y/anchor-is-valid": ["error", {
"components": ["Link"],
"specialLink": ["to", "hrefLeft", "hrefRight"],
"aspects": ["noHref", "invalidHref", "preferButton"]
}],
"jsx-a11y/label-has-for": [ 2, {
"components": [ "Label" ],
"required": {
"every": [ "nesting", "id" ]
},
"allowChildren": true
}],
"jsx-a11y/alt-text": "off",
"react/forbid-prop-types": "off",
"react/require-default-props": "off",
"arrow-parens": [2, "as-needed"],
// NOTE: I am allowing log here but really should not.
// I don't want to focus on them right now though
"no-console": [ "error", { allow: ["warn","error","log"]}],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
}
};