File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -134,6 +134,8 @@ export default [
134134 allowDefaultProject : [
135135 "packages/babel-helpers/src/helpers/applyDecs2305.ts" ,
136136 "scripts/repo-utils/index.d.cts" ,
137+ "eslint/babel-eslint-plugin/types.d.cts" ,
138+ "eslint/babel-eslint-parser/types.d.cts" ,
137139 ] ,
138140 } ,
139141 } ,
Original file line number Diff line number Diff line change 2121 },
2222 "main" : " ./lib/index.cjs" ,
2323 "type" : " module" ,
24+ "types" : " ./types.d.cts" ,
2425 "exports" : {
25- "." : " ./lib/index.cjs" ,
26- "./experimental-worker" : " ./lib/experimental-worker.cjs" ,
26+ "." : {
27+ "default" : " ./lib/index.cjs" ,
28+ "types" : " ./types.d.cts"
29+ },
30+ "./experimental-worker" : {
31+ "default" : " ./lib/experimental-worker.cjs" ,
32+ "types" : " ./types.d.cts"
33+ },
2734 "./package.json" : " ./package.json"
2835 },
2936 "peerDependencies" : {
Original file line number Diff line number Diff line change 1+ import type { ESLint , Linter , AST } from "eslint" ;
2+
3+ export declare const meta : ESLint . ObjectMetaProperties [ "meta" ] ;
4+
5+ export declare const parse : ( text : string , options ?: any ) => AST . Program ;
6+ export declare const parseForESLint : (
7+ text : string ,
8+ options ?: any
9+ ) => Linter . ESLintParseResult ;
Original file line number Diff line number Diff line change 44 "description" : " Companion rules for @babel/eslint-parser" ,
55 "main" : " ./lib/index.cjs" ,
66 "type" : " module" ,
7+ "types" : " ./types.d.cts" ,
78 "exports" : {
8- "." : " ./lib/index.cjs" ,
9+ "." : {
10+ "default" : " ./lib/index.cjs" ,
11+ "types" : " ./types.d.cts"
12+ },
913 "./package.json" : " ./package.json"
1014 },
1115 "publishConfig" : {
Original file line number Diff line number Diff line change 1+ import type { ESLint , Rule } from "eslint" ;
2+
3+ type Rules =
4+ | "new-cap"
5+ | "no-invalid-this"
6+ | "no-undef"
7+ | "no-unused-expressions"
8+ | "object-curly-spacing"
9+ | "semi" ;
10+
11+ export declare const meta : ESLint . ObjectMetaProperties [ "meta" ] ;
12+ export declare const rules : Record < Rules , Rule . RuleModule > ;
13+ export declare const rulesConfig : Record < Rules , string > ;
You can’t perform that action at this time.
0 commit comments