Skip to content

Commit

Permalink
Update @babel/eslint-parser
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Oct 20, 2021
1 parent 93b3479 commit f8e132c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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",
Expand Down
6 changes: 1 addition & 5 deletions rules/no-static-only-class.js
Expand Up @@ -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',
});

Expand Down

0 comments on commit f8e132c

Please sign in to comment.