@typescript-eslint/typescript-estree 8.71.3-alpha.0 → 8.71.3-alpha.2
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/dist/check-modifiers.js +6 -0
- package/dist/convert.js +1 -1
- package/package.json +5 -5
package/dist/check-modifiers.js
CHANGED
|
@@ -199,6 +199,12 @@ function checkModifiers(node) {
|
|
|
199
199
|
node.kind !== SyntaxKind.SetAccessor) {
|
|
200
200
|
throw (0, node_utils_1.createError)(modifier, `'${ts.tokenToString(modifier.kind)}' modifier can only appear on a class, method, or property declaration.`);
|
|
201
201
|
}
|
|
202
|
+
if (modifier.kind === SyntaxKind.ExportKeyword &&
|
|
203
|
+
modifiers
|
|
204
|
+
.slice(0, modifiers.indexOf(modifier))
|
|
205
|
+
.some(m => m.kind === SyntaxKind.AbstractKeyword)) {
|
|
206
|
+
throw (0, node_utils_1.createError)(modifier, "'export' modifier must precede 'abstract' modifier.");
|
|
207
|
+
}
|
|
202
208
|
if ((modifier.kind === SyntaxKind.StaticKeyword ||
|
|
203
209
|
modifier.kind === SyntaxKind.PublicKeyword ||
|
|
204
210
|
modifier.kind === SyntaxKind.ProtectedKeyword ||
|
package/dist/convert.js
CHANGED
|
@@ -483,7 +483,7 @@ class Converter {
|
|
|
483
483
|
case SyntaxKind.SourceFile: {
|
|
484
484
|
return this.createNode(node, {
|
|
485
485
|
type: ts_estree_1.AST_NODE_TYPES.Program,
|
|
486
|
-
range: [
|
|
486
|
+
range: [0, node.endOfFileToken.end],
|
|
487
487
|
body: this.convertBodyExpressions(node.statements, node),
|
|
488
488
|
comments: undefined,
|
|
489
489
|
sourceType: node.externalModuleIndicator ? 'module' : 'script',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/typescript-estree",
|
|
3
|
-
"version": "8.71.3-alpha.
|
|
3
|
+
"version": "8.71.3-alpha.2",
|
|
4
4
|
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"syntax"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@typescript-eslint/project-service": "8.71.3-alpha.
|
|
47
|
-
"@typescript-eslint/tsconfig-utils": "8.71.3-alpha.
|
|
48
|
-
"@typescript-eslint/types": "8.71.3-alpha.
|
|
49
|
-
"@typescript-eslint/visitor-keys": "8.71.3-alpha.
|
|
46
|
+
"@typescript-eslint/project-service": "8.71.3-alpha.2",
|
|
47
|
+
"@typescript-eslint/tsconfig-utils": "8.71.3-alpha.2",
|
|
48
|
+
"@typescript-eslint/types": "8.71.3-alpha.2",
|
|
49
|
+
"@typescript-eslint/visitor-keys": "8.71.3-alpha.2",
|
|
50
50
|
"debug": "^4.4.3",
|
|
51
51
|
"minimatch": "^10.2.2",
|
|
52
52
|
"semver": "^7.7.3",
|