From c0a744be272ad1ec0b5bc63dfc61c1d5a3c6b8c6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 5 Apr 2024 13:14:29 +0300 Subject: [PATCH] refactor(eslint): add `ecmaVersion` and `sourceType` (#19) --- eslint.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eslint.config.js b/eslint.config.js index d5e1e39..9ac8a59 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -15,6 +15,7 @@ export default defineFlatConfig([ unicorn.configs['flat/recommended'], { languageOptions: { + ecmaVersion: 'latest', globals: { ...globals.node, }, @@ -22,6 +23,7 @@ export default defineFlatConfig([ parserOptions: { project: 'tsconfig.json', }, + sourceType: 'module', }, settings: { 'import/resolver': {