Skip to content

Commit

Permalink
feat: use latest as ecmaVersion in parserOptions (#509)
Browse files Browse the repository at this point in the history
* feat: use latest as ecmaVersion in parserOptions

* fix: parserOptions for node presets

Co-authored-by: Sakito Mukai <sakito21@gmail.com>
  • Loading branch information
koba04 and sakit0 authored Oct 29, 2021
1 parent 8c7b006 commit 4016bf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
extends: ["eslint:recommended"],
plugins: ["import"],
parserOptions: {
ecmaVersion: 2019,
ecmaVersion: "latest",
sourceType: "module",
},
env: {
Expand Down
2 changes: 1 addition & 1 deletion lib/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ module.exports = {
"no-console": "off",
},
parserOptions: {
ecmaVersion: 2020,
ecmaVersion: "latest",
},
};

0 comments on commit 4016bf4

Please sign in to comment.