-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.loc.config.js
More file actions
30 lines (28 loc) · 1.14 KB
/
Copy patheslint.loc.config.js
File metadata and controls
30 lines (28 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
* LOC ceiling check — max-lines rules only.
*
* Run from monorepo root: `pnpm lint:loc`
*
* Caps live in tooling/eslint-config/loc-rules.js (single source of truth).
* This config wires those caps into a TS-parser-only ESLint instance with no
* type-aware rules so it can run cheaply across the whole repo without a
* TypeScript project service.
*
* File globs are root-relative (e.g., "apps/api/src/routes/**") so this must
* be invoked from the monorepo root.
*/
// Resolved via the eslint-config tooling package's own dep tree.
// @typescript-eslint/parser is a direct dep of @pluralscape/eslint-config;
// pnpm installs it under tooling/eslint-config/node_modules/.
import { locRules, locIgnores } from "./tooling/eslint-config/loc-rules.js";
import tsParser from "./tooling/eslint-config/node_modules/@typescript-eslint/parser/dist/index.js";
export default [
{ ignores: locIgnores },
{
// TypeScript parser without project service — syntax-only, no type info.
// This is sufficient for max-lines (a pure line-count rule).
files: ["**/*.ts", "**/*.tsx"],
languageOptions: { parser: tsParser },
},
...locRules,
];