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:
@@ -4,7 +4,7 @@ import { defineConfig, globalIgnores } from "eslint/config";
|
||||
// Workspaces that are linted by this root config. Each gets the shared rule
|
||||
// sets below; everything else is ignored so a bare `eslint .` keeps the same
|
||||
// scope as the previous per-workspace configs.
|
||||
const appDirs = ["apps/console/**", "apps/trust/**"];
|
||||
const appDirs = ["apps/console/**", "apps/trust/**", "apps/compliance-portal/**"];
|
||||
const reactDirs = [...appDirs, "packages/ui/**"];
|
||||
const lintedDirs = [...reactDirs, "packages/eslint-config/**"];
|
||||
|
||||
@@ -14,6 +14,7 @@ export default defineConfig([
|
||||
configs.base,
|
||||
globalIgnores([
|
||||
"examples/**",
|
||||
"pkg/**",
|
||||
"packages/coredata/**",
|
||||
"packages/cookie-banner/**",
|
||||
"packages/emails/**",
|
||||
|
||||
Reference in New Issue
Block a user