Migrate compliance-portal to the global ESLint config

The compliance-portal app still carried the per-workspace ESLint
scaffold that the rest of the monorepo dropped when linting was
centralized into the root eslint.config.mjs. It defined its own
local config, lint script, and lint-only devDeps, and was not
covered by the root lint script, so it was never linted.

Remove the local eslint.config.mjs, the lint script, and the
eslint/@probo/eslint-config devDeps, then add the app to the root
appDirs so the shared ts, react, and relay rule sets apply to it.

Replace the explicit per-directory list in the root lint script
with a bare `eslint .`, which the root config was already designed
for via its globalIgnores. Ignore pkg/** so the vendored minified
JS under the Go tree is not linted.

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-06-19 17:41:03 +02:00
parent 5bc6452eb6
commit c9cc46d359
5 changed files with 80 additions and 17 deletions

View File

@@ -6,7 +6,6 @@
"scripts": {
"dev": "vite --port 5175",
"build": "tsc -b && vite build",
"lint": "eslint . --concurrency 2",
"check": "tsc --noEmit -p tsconfig.app.json",
"preview": "vite preview"
},
@@ -20,7 +19,6 @@
"relay-runtime": "^21.0.1"
},
"devDependencies": {
"@probo/eslint-config": "1.0.0",
"@probo/eslint-plugin-relay-types": "^1.0.0",
"@tailwindcss/vite": "^4.3.1",
"@types/node": "^25.9.3",
@@ -30,7 +28,6 @@
"@types/relay-runtime": "^20.1.1",
"@vitejs/plugin-react": "^6.0.2",
"babel-plugin-relay": "^21.0.1",
"eslint": "^10.5.0",
"graphql": "^17.0.1",
"tailwindcss": "^4.3.1",
"typescript": "~6.0.3",