Skip to content

Commit

Permalink
all: update base eslint to reflect node14 (#693)
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky authored Nov 28, 2022
1 parent 275d5a3 commit 804dd06
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ module.exports = {
root: true,
ignorePatterns: ['node_modules', 'dist'],
parserOptions: {
ecmaVersion: 2019,
ecmaVersion: 2020,
},
env: {
es6: true,
node: true,
browser: true,
},
extends: [
// Turn on on eslint recommended rules https://github.com/eslint/eslint/blob/main/conf/eslint-recommended.js
Expand All @@ -16,7 +18,7 @@ module.exports = {
],
overrides: [
{
files: ['*.js'],
files: ['*.{js,mjs}'],
extends: [
// Handle prettier rules through eslint https://github.com/prettier/eslint-plugin-prettier/blob/master/eslint-plugin-prettier.js#L65
'plugin:prettier/recommended',
Expand Down

0 comments on commit 804dd06

Please sign in to comment.