Commit 263f56e Tuan
committed
1 parent d6139a4 commit 263f56e Copy full SHA for 263f56e
File tree 3 files changed +24
-15
lines changed
3 files changed +24
-15
lines changed Original file line number Diff line number Diff line change 1
1
z_tests /
2
2
** /* .d.ts
3
- ** /* .js
3
+ ** /* .js
4
+ ** /* .eslintrc.cjs
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- extends : [ 'eslint:recommended' , 'plugin:@typescript-eslint/recommended' ] ,
3
- parser : '@typescript-eslint/parser' ,
4
- parserOptions : {
5
- parser : "@typescript-eslint/parser" ,
6
- project : "./tsconfig.json" ,
7
- } ,
8
- plugins : [ '@typescript-eslint' ] ,
9
- rules :{
10
- "@typescript-eslint/no-floating-promises" : "error"
11
- } ,
12
- root : true ,
13
- } ;
2
+ extends : [
3
+ "eslint:recommended" ,
4
+ "plugin:@typescript-eslint/eslint-recommended" ,
5
+ "plugin:@typescript-eslint/recommended" ,
6
+ "plugin:@typescript-eslint/recommended-requiring-type-checking" ,
7
+ ] ,
8
+ parser : "@typescript-eslint/parser" ,
9
+ parserOptions : {
10
+ sourceType : "module" ,
11
+ tsconfigRootDir : __dirname ,
12
+ project : [ "./tsconfig.json" ] ,
13
+ } ,
14
+ plugins : [ "@typescript-eslint" ] ,
15
+ rules : {
16
+ "require-await" : "off" ,
17
+ "@typescript-eslint/require-await" : "error" ,
18
+ } ,
19
+ root : true ,
20
+ } ;
Original file line number Diff line number Diff line change 3
3
"strict" : true ,
4
4
"outDir" : "bin" ,
5
5
"target" : "esnext" ,
6
- "lib" : [ "es2019" , "esnext.array" ] ,
6
+ "lib" : [ "es2019" , "esnext.array" ] ,
7
7
"module" : "commonjs" ,
8
8
"moduleResolution" : "node" ,
9
9
"sourceMap" : true ,
17
17
"resolveJsonModule" : true
18
18
} ,
19
19
"files" : [ "index.ts" ] ,
20
- "exclude" : [ "node_modules" , "*.test.ts" ]
20
+ "include" : [ "**/*.ts" ] ,
21
+ "exclude" : [ "node_modules" , "*.test.ts" ]
21
22
}
You can’t perform that action at this time.
0 commit comments