docs: trim generated prose
This commit is contained in:
@@ -2,19 +2,7 @@ import stylistic from '@stylistic/eslint-plugin'
|
||||
import tseslint from 'typescript-eslint'
|
||||
|
||||
/**
|
||||
* ESLint flat config. Two layers:
|
||||
*
|
||||
* 1. typescript-eslint strict-type-checked — correctness rules that need the
|
||||
* type checker. The headline rules for this codebase: no-floating-promises
|
||||
* and no-misused-promises (an un-awaited promise in the agent loop is our
|
||||
* primary bug class), switch-exhaustiveness-check (we switch over
|
||||
* merge-extensible unions everywhere).
|
||||
* 2. @stylistic — formatting (2-space, no semicolons, single quotes, trailing
|
||||
* commas), so style is enforced rather than drifting between agents.
|
||||
*
|
||||
* vendor/ is linted lightly (style only stays OFF — vendored code keeps
|
||||
* upstream style; only a few safety rules apply there) and examples/tests are
|
||||
* linted with relaxed unsafe-* rules where mocks intentionally bend types.
|
||||
* ESLint flat config. Two layers.
|
||||
*/
|
||||
export default tseslint.config(
|
||||
{
|
||||
@@ -39,13 +27,7 @@ export default tseslint.config(
|
||||
],
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
// One shared tsserver-style project service instead of 60+ standalone
|
||||
// per-package programs: the old `project` glob built every package's
|
||||
// full dependency closure (sibling sources via the dev `paths` map +
|
||||
// the vendored Cordis stack) as its own program and kept them all
|
||||
// resident — ~5 GB peak, an OOM past node's default heap. The service
|
||||
// resolves each file to its nearest owning tsconfig and shares the
|
||||
// graph.
|
||||
// Share one project service to avoid per-package graphs and excessive memory.
|
||||
projectService: true,
|
||||
tsconfigRootDir: import.meta.dirname,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user