From 24a482daf493e37a00fa0b3dc04c6ae4ff2990f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 20 Oct 2022 23:41:25 +0200 Subject: [PATCH] Refine eslint configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .eslintrc.js | 6 ++++++ 1 file changed, 6 insertions(+) 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', -- 2.34.1