Skip to content

Commit

Permalink
fix(plugin): fix missing @babel/eslint-parser compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
dackmin committed Oct 29, 2020
1 parent bd2abb8 commit 62074fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/eslint-plugin/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};
2 changes: 1 addition & 1 deletion packages/eslint-plugin/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
configs: {
recommended: {
plugins: ['@poool/eslint-plugin'],
parser: 'babel-eslint',
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 2020,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/tests/rules/camelcase.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { RuleTester } = require('eslint');
const rule = require('../../lib/rules/camelcase');

const runner = new RuleTester({
parser: require.resolve('babel-eslint'),
parser: require.resolve('@babel/eslint-parser'),
parserOptions: { ecmaVersion: 2020 },
});

Expand Down

0 comments on commit 62074fa

Please sign in to comment.