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:
@@ -1,12 +0,0 @@
|
||||
import { configs } from "@probo/eslint-config";
|
||||
import { defineConfig } from "eslint/config";
|
||||
|
||||
export default defineConfig([
|
||||
configs.base,
|
||||
configs.ts,
|
||||
configs.imports,
|
||||
configs.react,
|
||||
configs.relay,
|
||||
configs.stylistic,
|
||||
configs.languageOptions.browser,
|
||||
]);
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user