File tree 4 files changed +17
-2
lines changed
4 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ import type { ProgramOptions } from "./ts";
3
3
import { TSServiceManager } from "./ts" ;
4
4
import * as tsEslintParser from "@typescript-eslint/parser" ;
5
5
import { getProjectConfigFiles } from "./utils/get-project-config-files" ;
6
+ export * as meta from "./meta" ;
7
+ export { name } from "./meta" ;
6
8
7
9
const DEFAULT_EXTRA_FILE_EXTENSIONS = [ ".vue" , ".svelte" , ".astro" ] ;
8
10
const tsServiceManager = new TSServiceManager ( ) ;
9
11
10
- export const name = "typescript-eslint-parser-for-extra-files" ;
11
-
12
12
export function parseForESLint (
13
13
code : string ,
14
14
options : ParserOptions = { }
Original file line number Diff line number Diff line change
1
+ export { name , version } from "../package.json" ;
Original file line number Diff line number Diff line change
1
+ import assert from "assert" ;
2
+ import * as parser from "../../src" ;
3
+ import { version } from "../../package.json" ;
4
+ const expectedMeta = {
5
+ name : "typescript-eslint-parser-for-extra-files" ,
6
+ version,
7
+ } ;
8
+
9
+ describe ( "Test for meta object" , ( ) => {
10
+ it ( "A parser should have a meta object." , ( ) => {
11
+ assert . deepStrictEqual ( parser . meta , expectedMeta ) ;
12
+ } ) ;
13
+ } ) ;
Original file line number Diff line number Diff line change 11
11
"noUnusedLocals" : true ,
12
12
"noUnusedParameters" : true ,
13
13
"esModuleInterop" : true ,
14
+ "resolveJsonModule" : true ,
14
15
15
16
"skipLibCheck" : true
16
17
},
You can’t perform that action at this time.
0 commit comments