forked from TypeStrong/typedoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
64 lines (60 loc) · 2.22 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
62
63
64
{
"root": true,
"parser": "@typescript-eslint/parser",
"env": {
"node": true,
"es6": true
},
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"ignorePatterns": ["src/test/renderer/specs/**", "examples/**", "dist"],
"rules": {
// This rule is factually incorrect. Interfaces which extend some type alias can be used to introduce
// new type names. This is useful particularly when dealing with mixins.
"@typescript-eslint/no-empty-interface": 0,
// We still use `any` fairly frequently...
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/no-explicit-any": 0,
// Declaration merging with a namespace is a necessary tool when working with enums.
"@typescript-eslint/no-namespace": 0,
// Reported by TypeScript
"@typescript-eslint/no-unused-vars": 0,
// Feel free to turn one of these back on and submit a PR!
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/explicit-module-boundary-types": 0
},
"overrides": [
{
"files": ["src/test/converter/**", "src/test/renderer/**"],
"rules": {
"prefer-rest-params": 0,
"no-inner-declarations": 0,
"no-var": 0,
"prefer-const": 0,
"@typescript-eslint/prefer-namespace-keyword": 0,
"@typescript-eslint/no-inferrable-types": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/no-misused-new": 0
}
},
{
"files": ["scripts/**", "bin/typedoc.js"],
"rules": {
// We don't depend on a new enough version of node to use imports here...
"@typescript-eslint/no-var-requires": 0
}
},
{
"files": ["src/test/**"],
"env": {
"mocha": true
}
}
]
}