diff --git a/package.json b/package.json index a2b57ddd71..b976759844 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "devDependencies": { "@babel/code-frame": "^7.14.5", "@babel/core": "^7.15.5", - "@babel/eslint-parser": "^7.15.7", + "@babel/eslint-parser": "^7.15.8", "@lubien/fixture-beta-package": "^1.0.0-beta.1", "@typescript-eslint/parser": "^4.32.0", "ava": "^3.15.0", diff --git a/rules/no-static-only-class.js b/rules/no-static-only-class.js index 7fc31b55c9..c506244f0e 100644 --- a/rules/no-static-only-class.js +++ b/rules/no-static-only-class.js @@ -65,11 +65,7 @@ function isStaticMember(node) { function * switchClassMemberToObjectProperty(node, sourceCode, fixer) { const staticToken = sourceCode.getFirstToken(node); assertToken(staticToken, { - expected: [ - {type: 'Keyword', value: 'static'}, - // `@babel/eslint-parser` use `{type: 'Identifier', value: 'static'}` - {type: 'Identifier', value: 'static'}, - ], + expected: {type: 'Keyword', value: 'static'}, ruleId: 'no-static-only-class', });