forked from typed-ember/glint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
55 lines (54 loc) · 1.77 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
{
"root": true,
"extends": ["eslint:recommended"],
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"rules": {
"prefer-const": "off",
"require-yield": "off"
},
"overrides": [
{
"files": ["*.js", "*.cjs", "*.mjs"],
"env": {
"node": true
}
},
{
"files": ["*.ts", "*.cts", "*.mts"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"prefer-const": "off",
"require-yield": "off",
"@typescript-eslint/prefer-const": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/triple-slash-reference": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-unused-vars": ["warn", { "varsIgnorePattern": "^_" }],
"@typescript-eslint/ban-ts-comment": ["error", { "ts-ignore": "allow-with-description" }],
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true
}
],
// Because of the number of type constraints we deal with that need to be
// able to appear in both covariant and contravariant positions, it becomes
// incredibly unwieldy to manage variants of each constraint with `never`
// and `unknown` in all the right places
"@typescript-eslint/no-explicit-any": "off"
}
}
]
}