forked from openedx/paragon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
61 lines (61 loc) · 1.28 KB
/
.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"extends": [
"@edx/eslint-config",
"plugin:import/typescript"
],
"parser": "babel-eslint",
"rules": {
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/*.stories.jsx",
"src/setupTest.js",
"**/*.test.jsx",
"**/*.test.js",
"config/*.js",
"*.config.ts",
"*.config.*.js",
"**/*.config.js",
"component-generator/**",
"generate-changelog.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
}]
},
"env": {
"jest": true
},
"globals": {
"newrelic": false
},
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"extends": "airbnb-typescript",
"parserOptions": {
"project": "./tsconfig.json"
}
}
]
}