Skip to content

Commit

Permalink
use @babel/eslint-parser at the top level of eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Aug 22, 2021
1 parent f77b467 commit a3f2dc0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -955,8 +955,11 @@ const json = {

module.exports = {
root: true,
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 'latest',
ecmaVersion: 2021,
requireConfigFile: false,
sourceType: 'script',
},
env: {
// unnececery global builtins disabled by related rules
Expand Down Expand Up @@ -1084,10 +1087,7 @@ module.exports = {
},
{
files: ['*.mjs'],
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 2022,
requireConfigFile: false,
sourceType: 'module',
},
},
Expand Down

0 comments on commit a3f2dc0

Please sign in to comment.