ember-eslint-parser 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/parser/gjs-gts-parser.js +10 -5
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-eslint-parser",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git
|
|
8
|
+
"url": "git+https://github.com/ember-tooling/ember-eslint-parser.git"
|
|
9
9
|
},
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"author": "",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"vitest": "^1.2.2"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@babel/eslint-parser": "^7.28.6",
|
|
58
|
+
"@babel/eslint-parser": "^7.28.6 || ^8.0.0",
|
|
59
59
|
"@typescript-eslint/parser": "*"
|
|
60
60
|
},
|
|
61
61
|
"peerDependenciesMeta": {
|
|
@@ -12,15 +12,20 @@ const require = createRequire(import.meta.url);
|
|
|
12
12
|
// peer (TS-only setups don't need it), so a missing dep yields null and the JS
|
|
13
13
|
// path below emits a targeted error.
|
|
14
14
|
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
// is being parsed.
|
|
15
|
+
// Matches the parser ember-cli wires up for plain `.js` files in JS-only
|
|
16
|
+
// apps, so config discovery (decorators & friends) lines up with how the
|
|
17
|
+
// rest of the project is being parsed.
|
|
19
18
|
let babelParser = null;
|
|
20
19
|
try {
|
|
20
|
+
// @babel/eslint-parser < 8
|
|
21
21
|
babelParser = require('@babel/eslint-parser/experimental-worker');
|
|
22
22
|
} catch {
|
|
23
|
-
|
|
23
|
+
try {
|
|
24
|
+
// @babel/eslint-parser >= 8
|
|
25
|
+
babelParser = require('@babel/eslint-parser');
|
|
26
|
+
} catch {
|
|
27
|
+
// optional peer; left null
|
|
28
|
+
}
|
|
24
29
|
}
|
|
25
30
|
|
|
26
31
|
/**
|