From e2c71d8254fa8f1d5e720f180e0f05c7cb13f768 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Sat, 7 Feb 2026 09:38:17 +0100 Subject: [PATCH] fix: add eslint/prettier to root and update eslint config --- apps/web/package.json | 2 +- eslint.config.js | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 eslint.config.js diff --git a/apps/web/package.json b/apps/web/package.json index de1fe14..e635936 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -82,4 +82,4 @@ "tsx": "^4.21.0", "typescript": "5.9.3" } -} \ No newline at end of file +} diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..416fae9 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,23 @@ +import mintelConfig from "@mintel/eslint-config"; +import { nextConfig } from "@mintel/eslint-config/next"; + +export default [ + ...mintelConfig, + { + files: ["apps/web/**/*.{js,jsx,ts,tsx}"], + ...nextConfig[0], // Ignores and common stuff + }, + ...nextConfig.slice(1).map(config => ({ + ...config, + files: ["apps/web/**/*.{js,jsx,ts,tsx}"], + })), + { + ignores: [ + "**/node_modules/**", + "**/.next/**", + "**/out/**", + "**/dist/**", + "**/build/**", + ], + }, +];