From 6499c631ac1039ef13de3ccfa1c5f76c26ec1338 Mon Sep 17 00:00:00 2001 From: Florian Maunier Date: Wed, 18 Dec 2024 09:45:58 +0100 Subject: [PATCH] fix(backend): fix wrong plugin name, fix node config not an array --- packages/backend/lib/configs/default.ts | 2 +- packages/backend/lib/configs/node.ts | 26 +++++++++++++------------ 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/packages/backend/lib/configs/default.ts b/packages/backend/lib/configs/default.ts index 4525769..a823a03 100644 --- a/packages/backend/lib/configs/default.ts +++ b/packages/backend/lib/configs/default.ts @@ -7,7 +7,7 @@ const defaultConfig = (plugin: TSESLint.FlatConfig.Plugin): TSESLint.FlatConfig. js.configs.recommended, { plugins: { - [plugin.meta!.name!]: plugin, + kuzzle: plugin, }, rules: { '@typescript-eslint/ban-ts-comment': 'off', diff --git a/packages/backend/lib/configs/node.ts b/packages/backend/lib/configs/node.ts index 4f7f377..a5df5d4 100644 --- a/packages/backend/lib/configs/node.ts +++ b/packages/backend/lib/configs/node.ts @@ -1,20 +1,22 @@ import { Linter } from 'eslint'; import globals from 'globals'; -const nodeConfig: Linter.Config = { - languageOptions: { - ecmaVersion: 2018, - globals: { - ...globals.node, - ...globals.es2018, - ...globals.mocha, - }, - parserOptions: { - ecmaFeatures: { - impliedStrict: false, +const nodeConfig: Linter.Config[] = [ + { + languageOptions: { + ecmaVersion: 2018, + globals: { + ...globals.node, + ...globals.es2018, + ...globals.mocha, + }, + parserOptions: { + ecmaFeatures: { + impliedStrict: false, + }, }, }, }, -}; +]; export default nodeConfig;