From b4a73f2eea0075cf50287d350a2ac745a4e838b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Wed, 21 Jan 2026 18:39:52 +0400 Subject: [PATCH] Update apps/console eslint dependency + compose eslint config with @probo/eslint-config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Émile Ré --- apps/console/eslint.config.mjs | 21 ++++++++++++++++----- apps/console/package.json | 2 +- apps/console/tsconfig.node.json | 3 ++- package-lock.json | 2 +- 4 files changed, 20 insertions(+), 8 deletions(-) diff --git a/apps/console/eslint.config.mjs b/apps/console/eslint.config.mjs index a6d6cf395..8e6a879b2 100644 --- a/apps/console/eslint.config.mjs +++ b/apps/console/eslint.config.mjs @@ -1,6 +1,17 @@ -import { browser } from "@probo/eslint-config"; +import { defineConfig } from "eslint/config"; +import { configs } from "@probo/eslint-config"; -export default [ - { ignores: ["dist", "eslint.config.mjs", "*.config.{js,mjs,ts}"] }, - ...browser(["./tsconfig.app.json", "./tsconfig.node.json"], import.meta.dirname), -]; +export default defineConfig([ + ...configs.base, + ...configs.ts, + ...configs.react, + configs.languageOptions.browser, + ...configs.stylistic, + { + languageOptions: { + parserOptions: { + tsConfigRootDir: import.meta.dirname, + }, + }, + }, +]); diff --git a/apps/console/package.json b/apps/console/package.json index 686cc8093..e699e128a 100644 --- a/apps/console/package.json +++ b/apps/console/package.json @@ -49,7 +49,7 @@ "@types/relay-runtime": "^19.0.1", "@vitejs/plugin-react": "^4.4.1", "babel-plugin-relay": "^19.0.0", - "eslint": "^9.25.0", + "eslint": "^9.39.2", "graphql": "^16.11.0", "relay-compiler": "^19.0.0", "tailwindcss": "^4.1.7", diff --git a/apps/console/tsconfig.node.json b/apps/console/tsconfig.node.json index 9728af2d8..fad570de9 100644 --- a/apps/console/tsconfig.node.json +++ b/apps/console/tsconfig.node.json @@ -1,6 +1,7 @@ { "compilerOptions": { "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", + "allowJs": true, "target": "ES2022", "lib": ["ES2023"], "module": "ESNext", @@ -21,5 +22,5 @@ "noFallthroughCasesInSwitch": true, "noUncheckedSideEffectImports": true }, - "include": ["vite.config.ts"] + "include": ["vite.config.ts", "eslint.config.mjs"] } diff --git a/package-lock.json b/package-lock.json index 116422506..9f8125b34 100644 --- a/package-lock.json +++ b/package-lock.json @@ -59,7 +59,7 @@ "@types/relay-runtime": "^19.0.1", "@vitejs/plugin-react": "^4.4.1", "babel-plugin-relay": "^19.0.0", - "eslint": "^9.25.0", + "eslint": "^9.39.2", "graphql": "^16.11.0", "relay-compiler": "^19.0.0", "tailwindcss": "^4.1.7",