File tree Expand file tree Collapse file tree 5 files changed +41
-4
lines changed Expand file tree Collapse file tree 5 files changed +41
-4
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,11 @@ jobs:
112
112
- name : 📥 Install dependencies
113
113
run : npm install --legacy-peer-deps
114
114
115
+ - name : ▶️ Run check-exports script
116
+ run : npm run check-exports -- --format=table
117
+
115
118
- name : ▶️ Run test:types script
116
- run : npm run test:types -- --format=table
119
+ run : npm run test:types
117
120
118
121
release :
119
122
name : 🚀 Release
Original file line number Diff line number Diff line change 51
51
"cross-spawn" : " ^7.0.3" ,
52
52
"esbuild" : " ^0.19.3" ,
53
53
"eslint" : " ^8.46.0" ,
54
+ "expect-type" : " ^1.2.1" ,
54
55
"fs-extra" : " ^10.1.0" ,
55
56
"mocha" : " ^10.4.0" ,
56
57
"monaco-editor" : " ^0.47.0" ,
72
73
"lint" : " eslint lib scripts tests" ,
73
74
"test" : " nyc npm run debug" ,
74
75
"debug" : " mocha \" tests/lib/**/*.js\" --reporter dot --timeout 8000" ,
75
- "test:types" : " attw --pack" ,
76
+ "test:types" : " tsc -p tsconfig.json" ,
77
+ "check-exports" : " attw --pack" ,
76
78
"coverage" : " nyc report --reporter lcov && opener coverage/lcov-report/index.html" ,
77
79
"watch" : " npm run -s test -- --watch --growl"
78
80
},
Original file line number Diff line number Diff line change
1
+ import configs = require( "@eslint-community/eslint-plugin-eslint-comments/configs" )
2
+ import expectTypeModule = require( "expect-type" )
3
+
4
+ import type { Linter } from "eslint"
5
+
6
+ import expectTypeOf = expectTypeModule . expectTypeOf
7
+
8
+ expectTypeOf ( configs )
9
+ . toHaveProperty ( "recommended" )
10
+ . toExtend < Linter . FlatConfig > ( )
11
+
12
+ expectTypeOf ( [ configs . recommended ] ) . toExtend < Linter . FlatConfig [ ] > ( )
13
+
14
+ expectTypeOf ( configs . recommended ) . toExtend < Linter . FlatConfig > ( )
15
+
16
+ expectTypeOf ( configs )
17
+ . toHaveProperty ( "recommended" )
18
+ . toExtend < Linter . FlatConfig > ( )
Original file line number Diff line number Diff line change
1
+ import configs from "@eslint-community/eslint-plugin-eslint-comments/configs"
2
+ import type { Linter } from "eslint"
3
+ import { expectTypeOf } from "expect-type"
4
+
5
+ expectTypeOf ( configs )
6
+ . toHaveProperty ( "recommended" )
7
+ . toExtend < Linter . FlatConfig > ( )
8
+
9
+ expectTypeOf ( [ configs . recommended ] ) . toExtend < Linter . FlatConfig [ ] > ( )
10
+
11
+ expectTypeOf ( configs . recommended ) . toExtend < Linter . FlatConfig > ( )
12
+
13
+ expectTypeOf ( configs )
14
+ . toHaveProperty ( "recommended" )
15
+ . toExtend < Linter . FlatConfig > ( )
Original file line number Diff line number Diff line change 2
2
"compilerOptions" : {
3
3
"allowSyntheticDefaultImports" : false ,
4
4
"esModuleInterop" : false ,
5
- "exactOptionalPropertyTypes" : true ,
6
5
"forceConsistentCasingInFileNames" : true ,
7
6
"isolatedModules" : true ,
8
7
"lib" : [" ESNext" ],
9
8
"module" : " NodeNext" ,
10
9
"moduleResolution" : " NodeNext" ,
11
10
"noEmit" : true ,
12
11
"resolveJsonModule" : true ,
13
- "skipLibCheck" : false ,
12
+ "skipLibCheck" : true ,
14
13
"strict" : true ,
15
14
"target" : " ESNext" ,
16
15
"useDefineForClassFields" : true ,
You can’t perform that action at this time.
0 commit comments