Centralize ESLint into a single root config
Replace the duplicated per-workspace eslint.config.mjs files in apps/console, apps/trust, packages/ui, and packages/eslint-config with one root eslint.config.mjs that reuses the shared @probo/eslint-config rule sets and scopes them per directory. Linting now runs from the repo root, so pin the type-checked project service root and broaden the import-x resolver to every workspace tsconfig (the #/* aliases live in each app's tsconfig.app.json). Drop the now-redundant per-package lint scripts and lint-only devDeps, and add a root lint script that runs eslint over the four dirs with multithreading restored via --concurrency auto, then lints n8n-node through a direct workspace call. packages/n8n-node keeps its own external preset. Collapse the redundant lint-js -> npm-lint Makefile chain into a single lint-js target and update the make docs accordingly. Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
@@ -14,7 +14,7 @@ The project uses a `GNUmakefile` at the root. Builds run with `--jobs=$(nproc)`
|
||||
| `make test-short` | Short tests only |
|
||||
| `make test-bench` | Run benchmarks |
|
||||
| `make test-e2e` | Run console end-to-end tests (requires `bin/probod`) |
|
||||
| `make lint` | Run all linters: `vet` + `go-fmt` + `go-fix` + `go-lint` + `npm-lint` |
|
||||
| `make lint` | Run all linters: `vet` + `go-fmt` + `go-fix` + `go-lint` + `lint-js` |
|
||||
| `make fmt` | Format Go code (`go fmt ./...`) |
|
||||
| `make clean` | Remove all build artifacts, `node_modules`, generated files, and coverage |
|
||||
| `make help` | List targets with `##` doc comments |
|
||||
|
||||
Reference in New Issue
Block a user