Refine eslint configuration
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 20 Oct 2022 21:41:25 +0000 (23:41 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 20 Oct 2022 21:41:25 +0000 (23:41 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.eslintrc.js

index e76f707d87ce468a1e222c2304c067874c62431f..56d4cb83c01c0793eb23bc44da80c4bd92aff4e1 100644 (file)
@@ -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',