Skip to content

Commit 2b1183c

Browse files
authored
Update @babel/eslint-parser (#1556)
1 parent ec681f2 commit 2b1183c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"devDependencies": {
5858
"@babel/code-frame": "^7.14.5",
5959
"@babel/core": "^7.15.5",
60-
"@babel/eslint-parser": "^7.15.7",
60+
"@babel/eslint-parser": "^7.15.8",
6161
"@lubien/fixture-beta-package": "^1.0.0-beta.1",
6262
"@typescript-eslint/parser": "^4.32.0",
6363
"ava": "^3.15.0",

rules/no-static-only-class.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,7 @@ function isStaticMember(node) {
6565
function * switchClassMemberToObjectProperty(node, sourceCode, fixer) {
6666
const staticToken = sourceCode.getFirstToken(node);
6767
assertToken(staticToken, {
68-
expected: [
69-
{type: 'Keyword', value: 'static'},
70-
// `@babel/eslint-parser` use `{type: 'Identifier', value: 'static'}`
71-
{type: 'Identifier', value: 'static'},
72-
],
68+
expected: {type: 'Keyword', value: 'static'},
7369
ruleId: 'no-static-only-class',
7470
});
7571

0 commit comments

Comments
 (0)