File tree 3 files changed +25
-5
lines changed
3 files changed +25
-5
lines changed Original file line number Diff line number Diff line change 1
- import { parseForESLint } from "./parser" ;
2
1
import * as AST from "./ast" ;
3
2
import { traverseNodes } from "./traverse" ;
4
3
import { KEYS } from "./visitor-keys" ;
5
4
import { ParseError } from "./errors" ;
5
+ export {
6
+ parseForESLint ,
7
+ StyleContext ,
8
+ StyleContextNoStyleElement ,
9
+ StyleContextParseError ,
10
+ StyleContextSuccess ,
11
+ StyleContextUnknownLang ,
12
+ } from "./parser" ;
6
13
export * as meta from "./meta" ;
7
14
export { name } from "./meta" ;
8
15
9
16
export { AST , ParseError } ;
10
17
11
- // parser
12
- export { parseForESLint } ;
13
18
// Keys
14
19
// eslint-disable-next-line @typescript-eslint/naming-convention -- ignore
15
20
export const VisitorKeys = KEYS ;
Original file line number Diff line number Diff line change @@ -22,7 +22,22 @@ import {
22
22
import { ParseError } from "../errors" ;
23
23
import { parseTypeScript } from "./typescript" ;
24
24
import { addReference } from "../scope" ;
25
- import { parseStyleContext , type StyleContext } from "./style-context" ;
25
+ import {
26
+ parseStyleContext ,
27
+ type StyleContext ,
28
+ type StyleContextNoStyleElement ,
29
+ type StyleContextParseError ,
30
+ type StyleContextSuccess ,
31
+ type StyleContextUnknownLang ,
32
+ } from "./style-context" ;
33
+
34
+ export {
35
+ StyleContext ,
36
+ StyleContextNoStyleElement ,
37
+ StyleContextParseError ,
38
+ StyleContextSuccess ,
39
+ StyleContextUnknownLang ,
40
+ } ;
26
41
27
42
export interface ESLintProgram extends Program {
28
43
comments : Comment [ ] ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import fs from "fs";
3
3
import path from "path" ;
4
4
5
5
import { parseForESLint } from "../../../src" ;
6
- import type { StyleContext } from "../../../src/parser/style-context " ;
6
+ import type { StyleContext } from "../../../src/parser" ;
7
7
import { generateParserOptions , listupFixtures } from "./test-utils" ;
8
8
9
9
const STYLE_CONTEXT_FIXTURE_ROOT = path . resolve (
You can’t perform that action at this time.
0 commit comments