@typescript-eslint/typescript-estree 8.45.1-alpha.10 → 8.45.1-alpha.11
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 +7 -0
- package/package.json +5 -5
package/dist/check-modifiers.js
CHANGED
|
@@ -258,5 +258,12 @@ function checkModifiers(node) {
|
|
|
258
258
|
throwError(modifier, 'A parameter property is only allowed in a constructor implementation.');
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
+
// There are more cases in `checkGrammarObjectLiteralExpression` in TypeScript.
|
|
262
|
+
// We may add more validations for them here in the future.
|
|
263
|
+
if (modifier.kind === SyntaxKind.AbstractKeyword &&
|
|
264
|
+
node.kind === SyntaxKind.MethodDeclaration &&
|
|
265
|
+
node.parent.kind === SyntaxKind.ObjectLiteralExpression) {
|
|
266
|
+
throwError(modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot be used here.`);
|
|
267
|
+
}
|
|
261
268
|
}
|
|
262
269
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/typescript-estree",
|
|
3
|
-
"version": "8.45.1-alpha.
|
|
3
|
+
"version": "8.45.1-alpha.11",
|
|
4
4
|
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"typecheck": "yarn run -BT nx typecheck"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@typescript-eslint/project-service": "8.45.1-alpha.
|
|
56
|
-
"@typescript-eslint/tsconfig-utils": "8.45.1-alpha.
|
|
57
|
-
"@typescript-eslint/types": "8.45.1-alpha.
|
|
58
|
-
"@typescript-eslint/visitor-keys": "8.45.1-alpha.
|
|
55
|
+
"@typescript-eslint/project-service": "8.45.1-alpha.11",
|
|
56
|
+
"@typescript-eslint/tsconfig-utils": "8.45.1-alpha.11",
|
|
57
|
+
"@typescript-eslint/types": "8.45.1-alpha.11",
|
|
58
|
+
"@typescript-eslint/visitor-keys": "8.45.1-alpha.11",
|
|
59
59
|
"debug": "^4.3.4",
|
|
60
60
|
"fast-glob": "^3.3.2",
|
|
61
61
|
"is-glob": "^4.0.3",
|