File tree Expand file tree Collapse file tree 5 files changed +10
-12
lines changed Expand file tree Collapse file tree 5 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,15 @@ export default ts.config(
11
11
files : [ '*.ts' ] ,
12
12
languageOptions : {
13
13
parserOptions : {
14
- project : 'tsconfig.json' ,
14
+ projectService : true ,
15
+ project : './tsconfig.json' ,
16
+ tsconfigRootDir : import . meta. dirname ,
15
17
} ,
16
18
} ,
17
19
} ,
18
20
{
19
21
files : [ '*.ts' , '*.mjs' ] ,
20
22
rules : {
21
- indent : [ 'error' , 4 ] ,
22
- quotes : [ 'error' , 'single' ] ,
23
- 'linebreak-style' : [ 'error' , 'unix' ] ,
24
- semi : [ 'error' , 'always' ] ,
25
23
eqeqeq : [ 'error' , 'always' ] ,
26
24
'no-constant-condition' : [ 'error' , { checkLoops : false } ] ,
27
25
'@typescript-eslint/no-unsafe-member-access' : 'off' ,
@@ -44,6 +42,7 @@ export default ts.config(
44
42
files : [ 'eslint.config.mjs' ] ,
45
43
languageOptions : {
46
44
parserOptions : {
45
+ projectService : false ,
47
46
project : 'tsconfig.eslint.json' ,
48
47
} ,
49
48
} ,
Original file line number Diff line number Diff line change @@ -145,7 +145,6 @@ jobs:
145
145
successMessage . style . display = 'none' ;
146
146
invalidInputMessage . style . display = 'none' ;
147
147
editor . clearGutter ( 'error-marker' ) ;
148
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
149
148
window . runActionlint ! ( editor . getValue ( ) ) ;
150
149
}
151
150
Original file line number Diff line number Diff line change 8
8
"lint:stylelint" : " stylelint style.css" ,
9
9
"lint:prettier" : " prettier --check '*.ts' '*.mjs'" ,
10
10
"lint:eslint" : " eslint --max-warnings 0 '*.ts' '*.mjs'" ,
11
- "lint:eslintconfig " : " tsc --checkJs --noEmit -p tsconfig.eslint.json" ,
12
- "lint" : " npm run lint:prettier && npm run lint:eslint && npm run lint:stylelint && npm run lint:eslintconfig " ,
11
+ "lint:tsc-eslint " : " tsc -p tsconfig.eslint.json" ,
12
+ "lint" : " npm run lint:prettier && npm run lint:eslint && npm run lint:stylelint && npm run lint:tsc-eslint " ,
13
13
"prettier" : " prettier --write '*.ts' '*.mjs'" ,
14
14
"build" : " tsc -p ." ,
15
15
"watch" : " tsc -p . --watch" ,
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ if (typeof globalThis.crypto === 'undefined') {
9
9
globalThis . crypto = new Crypto ( ) ;
10
10
}
11
11
12
- // Inject global.Go
13
- require ( './lib/js/wasm_exec.js' ) ;
12
+ // Inject global.Go for testing `main.wasm`.
13
+ require ( './lib/js/wasm_exec.js' ) ; // eslint-disable-line @typescript-eslint/no-require-imports
14
14
15
15
class CheckResults {
16
16
errors : ActionlintError [ ] | null = null ;
76
76
const json = JSON . stringify ( errors ) ;
77
77
assert . equal ( errors . length , 1 , json ) ;
78
78
79
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
80
79
const err = errors [ 0 ] ! ;
81
80
assert . equal ( err . message , '"runs-on" section is missing in job "test"' , `message is unexpected: ${ json } ` ) ;
82
81
assert . equal ( err . line , 5 , `line is unexpected: ${ json } ` ) ;
@@ -102,7 +101,6 @@ jobs:
102
101
const json = JSON . stringify ( errors ) ;
103
102
assert . equal ( errors . length , 1 , json ) ;
104
103
105
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
106
104
const err = errors [ 0 ] ! ;
107
105
assert . ok ( err . message . includes ( 'unknown Webhook event "foo"' ) , `message is unexpected: ${ json } ` ) ;
108
106
assert . equal ( err . line , 2 , `line is unexpected: ${ json } ` ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"extends" : " ./tsconfig.json" ,
3
3
"compilerOptions" : {
4
+ "checkJs" : true ,
5
+ "noEmit" : true ,
4
6
"module" : " nodenext" ,
5
7
"moduleResolution" : " nodenext"
6
8
},
You can’t perform that action at this time.
0 commit comments