Skip to content

Commit

Permalink
Update parser versions
Browse files Browse the repository at this point in the history
- use 2021 in typescript config
- remove setting a parser version in the jest config
- remove reference to parserOptions.ecmaFeatures.ecmaVersion in core -
  this is invalid configuration, and eslint defaults to using v5 anyway
  • Loading branch information
BPScott committed Nov 26, 2021
1 parent fa8bdd7 commit eace713
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions packages/eslint-plugin/lib/config/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ module.exports = {
plugins: ['@shopify', 'eslint-comments'],

parserOptions: {
ecmaFeatures: {
ecmaVersion: 5,
},
ecmaVersion: 5,
},

rules: merge(
Expand Down
1 change: 0 additions & 1 deletion packages/eslint-plugin/lib/config/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module.exports = {
},

parserOptions: {
ecmaVersion: 2015,
sourceType: 'module',
},

Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/lib/config/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
{
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
ecmaVersion: 2021,
sourceType: 'module',
},
files: ['*.ts', '*.tsx'],
Expand Down

0 comments on commit eace713

Please sign in to comment.