-
Notifications
You must be signed in to change notification settings - Fork 23
/
.eslintrc.json
55 lines (55 loc) · 1.18 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"plugin:prettier/recommended"
],
"plugins": ["jest"],
"rules": {
"import/export": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"mjs": "never",
"jsx": "never",
"ts": "never"
}
],
"max-classes-per-file": "off",
"no-underscore-dangle": "off",
"no-useless-constructor": "off",
"@typescript-eslint/consistent-type-imports": [
"error",
{ "fixStyle": "inline-type-imports" }
],
"@typescript-eslint/prefer-ts-expect-error": "error"
},
"env": {
"jest/globals": true
},
"overrides": [
{
"files": "generator/**/*",
"rules": {
"import/no-unresolved": "off"
}
},
{
"files": "integrationTests/__fixtures__/**/*",
"rules": {
"no-console": "off"
}
},
{
// TODO: remove after migrating to TS
"files": "**/*.js",
"rules": {
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
]
}