File tree Expand file tree Collapse file tree 4 files changed +53
-1
lines changed Expand file tree Collapse file tree 4 files changed +53
-1
lines changed Original file line number Diff line number Diff line change 18
18
# skip-ls-check: true
19
19
# - run: npm run pretest
20
20
21
+ types :
22
+ runs-on : ubuntu-latest
23
+ steps :
24
+ - uses : actions/checkout@v4
25
+ - uses : ljharb/actions/node/install@main
26
+ name : ' npm install'
27
+ with :
28
+ skip-ls-check : true
29
+ # for some reason we've got to force typescript to install here
30
+ # even though the npm script has `typescript@latest`
31
+ - run : npm i --force typescript@latest
32
+ - run : npm run test-types
33
+
21
34
posttest :
22
35
runs-on : ubuntu-latest
23
36
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
8
8
9
9
### Added
10
10
- add [ ` enforce-node-protocol-usage ` ] rule and ` import/node-version ` setting ([ #3024 ] , thanks [ @GoldStrikeArch ] and [ @sevenc-nanashi ] )
11
+ - add TypeScript types ([ #3097 ] , thanks [ @G-Rath ] )
11
12
12
13
### Changed
13
14
- [ Docs] [ ` extensions ` ] , [ ` order ` ] : improve documentation ([ #3106 ] , thanks [ @Xunnamius ] )
@@ -1161,6 +1162,7 @@ for info on changes for earlier releases.
1161
1162
[ `memo-parser` ] : ./memo-parser/README.md
1162
1163
1163
1164
[ #3106 ] : https://github.com/import-js/eslint-plugin-import/pull/3106
1165
+ [ #3097 ] : https://github.com/import-js/eslint-plugin-import/pull/3097
1164
1166
[ #3073 ] : https://github.com/import-js/eslint-plugin-import/pull/3073
1165
1167
[ #3072 ] : https://github.com/import-js/eslint-plugin-import/pull/3072
1166
1168
[ #3071 ] : https://github.com/import-js/eslint-plugin-import/pull/3071
Original file line number Diff line number Diff line change
1
+ import { ESLint , Linter , Rule } from 'eslint' ;
2
+
3
+ declare const plugin : ESLint . Plugin & {
4
+ meta : {
5
+ name : string ;
6
+ version : string ;
7
+ } ;
8
+ configs : {
9
+ 'recommended' : Linter . LegacyConfig ;
10
+ 'errors' : Linter . LegacyConfig ;
11
+ 'warnings' : Linter . LegacyConfig ;
12
+ 'stage-0' : Linter . LegacyConfig ;
13
+ 'react' : Linter . LegacyConfig ;
14
+ 'react-native' : Linter . LegacyConfig ;
15
+ 'electron' : Linter . LegacyConfig ;
16
+ 'typescript' : Linter . LegacyConfig ;
17
+ } ;
18
+ flatConfigs : {
19
+ 'recommended' : Linter . FlatConfig ;
20
+ 'errors' : Linter . FlatConfig ;
21
+ 'warnings' : Linter . FlatConfig ;
22
+ 'stage-0' : Linter . FlatConfig ;
23
+ 'react' : Linter . FlatConfig ;
24
+ 'react-native' : Linter . FlatConfig ;
25
+ 'electron' : Linter . FlatConfig ;
26
+ 'typescript' : Linter . FlatConfig ;
27
+ } ;
28
+ rules : {
29
+ [ key : string ] : Rule . RuleModule ;
30
+ } ;
31
+ } ;
32
+
33
+ export = plugin ;
Original file line number Diff line number Diff line change 6
6
"node" : " >=4"
7
7
},
8
8
"main" : " lib/index.js" ,
9
+ "types" : " index.d.ts" ,
9
10
"directories" : {
10
11
"test" : " tests"
11
12
},
16
17
" docs" ,
17
18
" lib" ,
18
19
" config" ,
19
- " memo-parser/{*.js,LICENSE,*.md}"
20
+ " memo-parser/{*.js,LICENSE,*.md}" ,
21
+ " index.d.ts"
20
22
],
21
23
"scripts" : {
22
24
"prebuild" : " rimraf lib" ,
34
36
"test-examples" : " npm run build && npm run test-example:legacy && npm run test-example:flat" ,
35
37
"test-example:legacy" : " cd examples/legacy && npm install && npm run lint" ,
36
38
"test-example:flat" : " cd examples/flat && npm install && npm run lint" ,
39
+ "test-types" : " npx --package typescript@latest tsc --noEmit index.d.ts" ,
37
40
"prepublishOnly" : " safe-publish-latest && npm run build" ,
38
41
"prepublish" : " not-in-publish || npm run prepublishOnly" ,
39
42
"preupdate:eslint-docs" : " npm run build" ,
63
66
"@angular-eslint/template-parser" : " ^13.5.0" ,
64
67
"@eslint/import-test-order-redirect-scoped" : " file:./tests/files/order-redirect-scoped" ,
65
68
"@test-scope/some-module" : " file:./tests/files/symlinked-module" ,
69
+ "@types/eslint" : " ^8.56.12" ,
66
70
"@typescript-eslint/parser" : " ^2.23.0 || ^3.3.0 || ^4.29.3 || ^5.10.0" ,
67
71
"babel-cli" : " ^6.26.0" ,
68
72
"babel-core" : " ^6.26.3" ,
You can’t perform that action at this time.
0 commit comments