forked from TypeStrong/typedoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
88 lines (79 loc) · 2.68 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json"
},
"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",
"dist",
"docs",
"tmp",
"coverage",
"static/main.js",
"src/lib/output/themes/default/assets",
"node_modules",
// Temporarily ignored until eslint supports TS 4.9
"src/test/converter/class/getter-setter.ts",
"src/test/converter/variables/variable.ts",
"src/test/converter2/behavior/hiddenAccessor.ts",
// Would be nice to lint these, but they shouldn't be included in the project,
// so we need a second eslint config file.
"example",
"src/codegen",
"src/test/converter",
"src/test/converter2",
"src/test/module",
"src/test/packages",
"src/test/renderer",
"src/test/slow/entry-points",
"scripts",
"bin"
],
"rules": {
"@typescript-eslint/no-floating-promises": 1,
// This one is just annoying since it complains at incomplete code
"no-empty": 0,
// 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,
// Really annoying, doesn't provide any value.
"@typescript-eslint/no-empty-function": 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,
"no-console": 1,
// 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,
"no-restricted-syntax": [
"warn",
{
"selector": "ImportDeclaration[source.value=/.*perf$/]",
"message": "Benchmark calls must be removed before committing."
}
]
},
"overrides": [
{
"files": ["src/test/**"],
"env": {
"mocha": true
}
}
]
}