From: Jérôme Benoit Date: Sun, 9 Oct 2022 13:58:35 +0000 (+0200) Subject: Refine eslint configuration X-Git-Tag: v2.3.1~57 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6d0425b42424c7924c4f26ecea79f32a449c469d;p=poolifier.git Refine eslint configuration Signed-off-by: Jérôme Benoit --- diff --git a/.eslintrc.js b/.eslintrc.js index 8349a186..ff5c0f76 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -7,6 +7,10 @@ module.exports = defineConfig({ node: true, mocha: true }, + parserOptions: { + ecmaVersion: 2021, + sourceType: 'module' + }, plugins: ['promise', 'prettierx', 'jsdoc', 'spellcheck'], extends: [ 'standard', @@ -54,8 +58,6 @@ module.exports = defineConfig({ files: ['**/*.ts'], parser: '@typescript-eslint/parser', parserOptions: { - ecmaVersion: 2020, - sourceType: 'module', project: './tsconfig.json' }, plugins: ['@typescript-eslint'], diff --git a/tsconfig.json b/tsconfig.json index e3c2919e..a0ad5d4c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { - "target": "ES2019", - "module": "ES2020", + "target": "ES2021", + "module": "ES2022", "outDir": "lib", "esModuleInterop": true, "declaration": true,