4
4
node : true
5
5
plugins :
6
6
- prettier
7
- - ' @typescript-eslint'
7
+ parser : ' @typescript-eslint/parser '
8
8
extends :
9
9
- ' eslint:recommended'
10
10
- ' plugin:prettier/recommended'
11
- - ' plugin:@typescript-eslint/recommended'
12
- parser : ' @typescript-eslint/parser' # for index.d.ts
11
+ parserOptions :
12
+ ecmaVersion : 2020
13
+ sourceType : module
13
14
globals :
14
15
Atomics : readonly
15
16
BigInt : readonly
16
17
SharedArrayBuffer : readonly
17
18
globalThis : readonly
18
- parserOptions :
19
- ecmaVersion : 2020
20
- sourceType : module
21
19
ignorePatterns :
22
20
- node_modules/
23
21
- /dist/
38
36
- error
39
37
- multi-line
40
38
func-call-spacing : off
41
- ' @typescript-eslint/func-call-spacing ' : error
42
39
function-call-argument-newline :
43
40
- error
44
41
- consistent
@@ -78,14 +75,6 @@ rules:
78
75
- avoidEscape : true
79
76
semi : error
80
77
space-infix-ops : error
81
- ' @typescript-eslint/explicit-module-boundary-types ' : off
82
- ' @typescript-eslint/no-empty-function ' : off
83
- ' @typescript-eslint/no-empty-interface ' :
84
- - error
85
- - allowSingleExtends : true
86
- ' @typescript-eslint/no-var-requires ' : off
87
- ' @typescript-eslint/ban-ts-comment ' : off
88
- ' @typescript-eslint/no-explicit-any ' : off # TODO turn this back on
89
78
overrides :
90
79
- files :
91
80
- lib/duration.ts
@@ -100,3 +89,28 @@ overrides:
100
89
- test/**/*
101
90
rules :
102
91
no-param-reassign : off
92
+ - files :
93
+ - ' **/*.ts'
94
+ plugins :
95
+ - ' @typescript-eslint'
96
+ parserOptions :
97
+ ecmaVersion : 2020
98
+ sourceType : module
99
+ project :
100
+ - ' ./tsconfig.json'
101
+ extends :
102
+ - ' plugin:@typescript-eslint/recommended'
103
+ # TODO turn this on - it catches lots of implicit 'any's
104
+ # - 'plugin:@typescript-eslint/recommended-requiring-type-checking'
105
+ rules :
106
+ ' @typescript-eslint/explicit-module-boundary-types ' : off
107
+ ' @typescript-eslint/no-empty-function ' : error
108
+ ' @typescript-eslint/no-empty-interface ' :
109
+ - error
110
+ - allowSingleExtends : true
111
+ ' @typescript-eslint/no-var-requires ' : off
112
+ ' @typescript-eslint/ban-ts-comment ' : off
113
+ ' @typescript-eslint/no-explicit-any ' : off # Todo re-enable this
114
+ ' @typescript-eslint/no-unnecessary-type-assertion ' : error
115
+ ' @typescript-eslint/func-call-spacing ' : error
116
+ prefer-const : off
0 commit comments