-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc
51 lines (51 loc) · 1.42 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
{
"extends": [
"amo",
"plugin:amo/typescript",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"env": {
"node": true
},
"rules": {
"import/no-extraneous-dependencies": ["error", {
"devDependencies": [
"**/*.spec.*",
"tests/helpers.ts"
]
}
],
"import/extensions": ["error", "never", {
"json": "always",
}],
// This rule conflicts with our convention.
"jest/valid-describe": "off",
// This is not needed for this project.
"amo/only-tsx-files": off,
// We decided to prefer types over interfaces.
"@typescript-eslint/prefer-interface": "off",
// Report an error when a variable is not used.
"@typescript-eslint/no-unused-vars": "error",
// The beauty of TS is that it infers types quite well, so let's not write
// too much code.
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/explicit-member-accessibility": "off",
"import/no-unresolved": ["error", {
ignore: ['estree'],
}],
// This rule is annoying and does not add any value.
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/ban-ts-comment": ["error", {
"ts-expect-error": "allow-with-description",
}],
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ts"]
}
}
}
}