forked from openedx/paragon
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
45 lines (45 loc) · 952 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
42
43
44
45
{
"extends": "eslint-config-edx",
"parser": "babel-eslint",
"rules": {
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/*.stories.jsx",
"src/setupTest.js",
"**/*.test.jsx",
"**/*.test.js",
"config/*.js",
"*.config.js",
"*.config.*.js",
"**/*.config.js"
]
}
],
// https://github.com/evcohen/eslint-plugin-jsx-a11y/issues/340#issuecomment-338424908
"jsx-a11y/anchor-is-valid": [ "error", {
"components": [ "Link" ],
"specialLink": [ "to" ]
}],
"jsx-a11y/label-has-for": [ 2, {
"components": [ "label" ],
"required": "id",
"allowChildren": false
}]
},
"overrides": [
{
"files": ["*.stories.jsx"],
"rules": {
"no-console": "off"
}
}
],
"env": {
"jest": true
},
"globals": {
"newrelic": false
}
}