@@ -5,37 +5,43 @@ import path from 'node:path';
5
5
6
6
const __dirname = path . resolve ( ) ;
7
7
8
- export default tseslint . config ( js . configs . recommended , ...tseslint . configs . recommended , {
9
- files : [ '**/*.ts' ] ,
10
- ignores : [ './public/**/*' , 'release.config.js' ] ,
11
- languageOptions : {
12
- ecmaVersion : 2022 ,
13
- sourceType : 'module' ,
14
- parser : tseslint . parser ,
15
- parserOptions : {
16
- project : [ './tsconfig.json' , './spec/tsconfig.json' ] ,
17
- tsconfigRootDir : __dirname ,
8
+ export default tseslint . config (
9
+ js . configs . recommended ,
10
+ ...tseslint . configs . recommended ,
11
+ {
12
+ files : [ '**/*.ts' ] ,
13
+ languageOptions : {
14
+ ecmaVersion : 2022 ,
15
+ sourceType : 'module' ,
16
+ parser : tseslint . parser ,
17
+ parserOptions : {
18
+ project : [ './tsconfig.json' , './spec/tsconfig.json' ] ,
19
+ tsconfigRootDir : __dirname ,
20
+ } ,
21
+ globals : {
22
+ ...globals . node ,
23
+ Parse : 'readonly' ,
24
+ } ,
18
25
} ,
19
- globals : {
20
- ...globals . node ,
21
- Parse : 'readonly' ,
26
+ rules : {
27
+ '@typescript-eslint/explicit-function-return-type' : 'off' ,
28
+ '@typescript-eslint/no-explicit-any' : 'warn' ,
29
+ '@typescript-eslint/no-unused-vars' : [ 'error' , { argsIgnorePattern : '^_' } ] ,
30
+ indent : [ 'error' , 2 , { SwitchCase : 1 } ] ,
31
+ 'linebreak-style' : [ 'error' , 'unix' ] ,
32
+ 'no-trailing-spaces' : 'error' ,
33
+ 'eol-last' : 'error' ,
34
+ 'space-in-parens' : [ 'error' , 'never' ] ,
35
+ 'no-multiple-empty-lines' : 'warn' ,
36
+ 'prefer-const' : 'error' ,
37
+ 'space-infix-ops' : 'error' ,
38
+ 'no-useless-escape' : 'off' ,
39
+ 'require-atomic-updates' : 'off' ,
40
+ 'no-var' : 'warn' ,
41
+ 'no-await-in-loop' : 'warn' ,
22
42
} ,
23
43
} ,
24
- rules : {
25
- '@typescript-eslint/explicit-function-return-type' : 'off' ,
26
- '@typescript-eslint/no-explicit-any' : 'warn' ,
27
- '@typescript-eslint/no-unused-vars' : [ 'error' , { argsIgnorePattern : '^_' } ] ,
28
- indent : [ 'error' , 2 , { SwitchCase : 1 } ] ,
29
- 'linebreak-style' : [ 'error' , 'unix' ] ,
30
- 'no-trailing-spaces' : 'error' ,
31
- 'eol-last' : 'error' ,
32
- 'space-in-parens' : [ 'error' , 'never' ] ,
33
- 'no-multiple-empty-lines' : 'warn' ,
34
- 'prefer-const' : 'error' ,
35
- 'space-infix-ops' : 'error' ,
36
- 'no-useless-escape' : 'off' ,
37
- 'require-atomic-updates' : 'off' ,
38
- 'no-var' : 'warn' ,
39
- 'no-await-in-loop' : 'warn' ,
40
- } ,
41
- } ) ;
44
+ {
45
+ ignores : [ 'public/**/*' , 'release.config.js' ] ,
46
+ }
47
+ ) ;
0 commit comments