File tree Expand file tree Collapse file tree 3 files changed +1236
-1193
lines changed Expand file tree Collapse file tree 3 files changed +1236
-1193
lines changed Original file line number Diff line number Diff line change 24
24
"devDependencies" : {
25
25
"@napi-rs/cli" : " ^1.2.1" ,
26
26
"@swc-node/register" : " ^1.3.4" ,
27
- "@typescript-eslint/eslint-plugin" : " ^4.29.3 " ,
28
- "@typescript-eslint/parser" : " ^4.29.3 " ,
27
+ "@typescript-eslint/eslint-plugin" : " ^4.30.0 " ,
28
+ "@typescript-eslint/parser" : " ^4.30.0 " ,
29
29
"ava" : " ^3.15.0" ,
30
30
"benchmark" : " ^2.1.4" ,
31
31
"codecov" : " ^3.8.3" ,
32
32
"cross-env" : " ^7.0.3" ,
33
33
"eslint" : " ^7.32.0" ,
34
34
"eslint-config-prettier" : " ^8.3.0" ,
35
35
"eslint-plugin-import" : " ^2.24.2" ,
36
- "eslint-plugin-prettier" : " ^3.4.1 " ,
36
+ "eslint-plugin-prettier" : " ^4.0.0 " ,
37
37
"eslint-plugin-sonarjs" : " ^0.10.0" ,
38
38
"husky" : " ^7.0.2" ,
39
39
"lerna" : " ^4.0.0" ,
42
42
"nyc" : " ^15.1.0" ,
43
43
"prettier" : " ^2.3.2" ,
44
44
"tslib" : " ^2.3.1" ,
45
- "typescript" : " ^4.3.5 "
45
+ "typescript" : " ^4.4.2 "
46
46
},
47
47
"ava" : {
48
48
"extensions" : [" ts" ],
Original file line number Diff line number Diff line change @@ -298,7 +298,11 @@ fn lint_command(ctx: CallContext) -> Result<JsBoolean> {
298
298
let ts_config = TsConfig {
299
299
dynamic_import : true ,
300
300
decorators : true ,
301
- tsx : p. ends_with ( ".tsx" ) ,
301
+ tsx : p
302
+ . extension ( )
303
+ . and_then ( |ext| ext. to_str ( ) )
304
+ . map ( |ext| ext == "tsx" )
305
+ . unwrap_or ( false ) ,
302
306
..Default :: default ( )
303
307
} ;
304
308
let syntax = Syntax :: Typescript ( ts_config) ;
You can’t perform that action at this time.
0 commit comments