We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3573cef commit f657a68Copy full SHA for f657a68
lib/index.ts
@@ -9,6 +9,7 @@ import prettier from "./configs/prettier"
9
// backward compatibility
10
import {
11
parseForESLint,
12
+ parseJSON,
13
traverseNodes,
14
AST,
15
getStaticJSONValue,
@@ -50,24 +51,3 @@ export {
50
51
// types
52
53
}
-
54
-/**
55
- * Parse JSON source code
56
- */
57
-function parseJSON(code: string, options?: any): AST.JSONProgram {
58
- const parserOptions = Object.assign(
59
- { filePath: "<input>", ecmaVersion: 2019 },
60
- options || {},
61
- {
62
- loc: true,
63
- range: true,
64
- raw: true,
65
- tokens: true,
66
- comment: true,
67
- eslintVisitorKeys: true,
68
- eslintScopeManager: true,
69
- },
70
- )
71
72
- return parseForESLint(code, parserOptions).ast as never
73
-}
0 commit comments