From: Jérôme Benoit Date: Thu, 20 Oct 2022 21:41:25 +0000 (+0200) Subject: Refine eslint configuration X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=24a482daf493e37a00fa0b3dc04c6ae4ff2990f2;p=benchmarks-js.git Refine eslint configuration Signed-off-by: Jérôme Benoit --- diff --git a/.eslintrc.js b/.eslintrc.js index e76f707..56d4cb8 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,11 +1,17 @@ +// @ts-check // eslint-disable-next-line n/no-unpublished-require const { defineConfig } = require('eslint-define-config') module.exports = defineConfig({ + root: true, env: { es2021: true, node: true }, + parserOptions: { + ecmaVersion: 2021, + sourceType: 'module' + }, plugins: ['promise', 'prettierx', 'jsdoc'], extends: [ 'standard',