From c8b19e6a86a1bf72bcb99c14df94163af653fe60 Mon Sep 17 00:00:00 2001 From: Seth Silesky <5115498+silesky@users.noreply.github.com> Date: Tue, 22 Nov 2022 21:03:56 -0600 Subject: [PATCH] update eslint for node14 --- .eslintrc.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 5eacdb5b2..9a7b0f8dd 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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 @@ -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',