Skip to content

chore(lint): 146 tracked code files match no eslint rule block, including the publish script and every rollup config #2000

Open

Description

@StoneCypher

Found while evaluating the 6.0.0 landing (jssm branch release_26-09-14_v6-landing at 10ae1eee). The landing plan (notes/superpowers/plans/2026-09-14-v6-landing.md, "Out of scope") recorded this gap and deferred it, on the grounds that turning lint on for this many files during a release is how a release breaks. Filed with John's approval on 2026-11-12.

This is not a 6.0.0 gate. It is 6.x cleanup.

Why these files are unlinted

Two things have to be true for eslint to check a file. For each file below, at least one is false.

  1. The file has to be handed to eslint. npm run eslint is eslint --color src/ts src/buildjs. Nothing at the repo root, in src/scripts, src/fsl.tools, sketch, or examples is ever passed.
  2. A config block's files glob has to match it. Flat config has no catch-all. eslint.config.mjs has blocks for src/ts/**/*.ts and for src/buildjs/**/*.cjs plus src/buildjs/**/*.js, and nothing else. So src/buildjs/**/*.ts and src/buildjs/**/*.mjs are handed to eslint and then matched by no block.

What is in the gap

Counted on 10ae1eee: tracked .ts, .js, .cjs, .mjs and .jsx files (.cts, .mts and .tsx were searched too; there are none) outside dist/, docs/ and packages/*/dist/, leaving out declaration files and everything the two blocks cover.

Where Files What they are
Repo root 29 18 rollup configs, 6 vitest files, and the playwright, commitlint, custom-elements-manifest, typedoc and eslint configs
src/fsl.tools/site 37 16 JSX components, 20 recipe .cjs files, the site build script
src/scripts 36 17 scripts, 7 files under teaching_surface/, 12 specs
src/buildjs 27 25 tests/*.spec.ts, peg_ts_export_footer.ts, build_shootout.mjs
sketch/ 13 The CodeMirror 6 editor prototype
src/ts/tests/cli/fixtures/plugins 3 .cjs plugin fixtures
examples/fsl-editor 1 _demo_entry.ts
Total 146

The landing plan's survey of 2026-09-14 said 117. That figure could not be reconstructed. The list below is reproducible with the command at the end of this issue.

All 146 files

Repo root (29)

  • commitlint.config.mjs
  • custom-elements-manifest.config.mjs
  • eslint.config.mjs
  • playwright.config.ts
  • rollup.config.cli.js
  • rollup.config.cm6.es6.js
  • rollup.config.core.js
  • rollup.config.fence.es6.js
  • rollup.config.pkg_cli.js
  • rollup.config.pkg_commonjs.js
  • rollup.config.pkg_fence.js
  • rollup.config.pkg_iife.js
  • rollup.config.pkg_verify.js
  • rollup.config.pkg_viz.js
  • rollup.config.viz.js
  • rollup.config.wc.docs.es6.js
  • rollup.config.wc.editor.es6.js
  • rollup.config.wc.instance.cdn.js
  • rollup.config.wc.instance.es6.js
  • rollup.config.wc.viz.cdn.js
  • rollup.config.wc.viz.es6.js
  • rollup.config.wc.widgets.es6.js
  • typedoc-options.cjs
  • vitest.docs.config.ts
  • vitest.dragon.config.ts
  • vitest.setup.ts
  • vitest.spec.config.ts
  • vitest.stoch.config.ts
  • vitest.unicode.config.ts

src/buildjs (27)

  • src/buildjs/build_shootout.mjs
  • src/buildjs/peg_ts_export_footer.ts
  • src/buildjs/tests/benchmark_bundle_size.spec.ts
  • src/buildjs/tests/benchmark_gc.spec.ts
  • src/buildjs/tests/benchmark_load.spec.ts
  • src/buildjs/tests/benchmark_scaling_carrying.spec.ts
  • src/buildjs/tests/benchmark_scaling_exponents.spec.ts
  • src/buildjs/tests/benchmark_scaling_latency.spec.ts
  • src/buildjs/tests/benchmark_scaling_memory.spec.ts
  • src/buildjs/tests/benchmark_scaling_plan.spec.ts
  • src/buildjs/tests/benchmark_scaling_shapes.spec.ts
  • src/buildjs/tests/benchmark_timing.spec.ts
  • src/buildjs/tests/build_config.spec.ts
  • src/buildjs/tests/build_config_features.spec.ts
  • src/buildjs/tests/build_help_content.spec.ts
  • src/buildjs/tests/build_manifest.spec.ts
  • src/buildjs/tests/decl_parity.spec.ts
  • src/buildjs/tests/fixparser_fast_atom.spec.ts
  • src/buildjs/tests/fsl_tmlanguage.spec.ts
  • src/buildjs/tests/makever_workspaces.spec.ts
  • src/buildjs/tests/package_bundle_boundaries.spec.ts
  • src/buildjs/tests/playwright_install.spec.ts
  • src/buildjs/tests/run_build.spec.ts
  • src/buildjs/tests/verify_no_published_bloat.spec.ts
  • src/buildjs/tests/verify_peer_pins.spec.ts
  • src/buildjs/tests/verify_side_effects.spec.ts
  • src/buildjs/tests/verify_version_bump.spec.ts

src/scripts (36)

  • src/scripts/benchmark_compare.cjs
  • src/scripts/build_repo_timeline.cjs
  • src/scripts/collect_package_sizes.cjs
  • src/scripts/collect_tagged_repo_sizes.cjs
  • src/scripts/era_book_html.cjs
  • src/scripts/fill_perf_gaps.cjs
  • src/scripts/flow_model.cjs
  • src/scripts/graviton_envelope.cjs
  • src/scripts/graviton_perf.cjs
  • src/scripts/graviton_perf_launch.cjs
  • src/scripts/graviton_trail_audit.cjs
  • src/scripts/make_method_function_table.cjs
  • src/scripts/make_perf_chart.cjs
  • src/scripts/make_size_chart.cjs
  • src/scripts/perf_regression_alarm.cjs
  • src/scripts/publish_workspaces.cjs
  • src/scripts/size_families.cjs
  • src/scripts/teaching_surface/check_partition.cjs
  • src/scripts/teaching_surface/check_teaching_surface.cjs
  • src/scripts/teaching_surface/extract_grammar_surface.cjs
  • src/scripts/teaching_surface/extract_surfaces.cjs
  • src/scripts/teaching_surface/scan_pages.cjs
  • src/scripts/teaching_surface/tests/check_teaching_surface.test.cjs
  • src/scripts/teaching_surface/tests/scan_pages.test.cjs
  • src/scripts/tests/benchmark_compare.spec.ts
  • src/scripts/tests/build_repo_timeline.spec.ts
  • src/scripts/tests/collect_package_sizes.spec.ts
  • src/scripts/tests/fill_perf_gaps.spec.ts
  • src/scripts/tests/flow_model.spec.ts
  • src/scripts/tests/graviton_envelope.spec.ts
  • src/scripts/tests/graviton_perf.spec.ts
  • src/scripts/tests/graviton_trail_audit.spec.ts
  • src/scripts/tests/make_perf_chart.spec.ts
  • src/scripts/tests/make_size_chart.spec.ts
  • src/scripts/tests/perf_regression_alarm.spec.ts
  • src/scripts/tests/publish_workspaces.spec.ts

src/fsl.tools/site (37)

  • src/fsl.tools/site/components/Community.jsx
  • src/fsl.tools/site/components/CookbookCode.jsx
  • src/fsl.tools/site/components/CookbookFooter.jsx
  • src/fsl.tools/site/components/CookbookGraph.jsx
  • src/fsl.tools/site/components/CookbookRecipeView.jsx
  • src/fsl.tools/site/components/CookbookSidebar.jsx
  • src/fsl.tools/site/components/DiagnosticPanel.jsx
  • src/fsl.tools/site/components/Examples.jsx
  • src/fsl.tools/site/components/FeatureGrid.jsx
  • src/fsl.tools/site/components/Footer.jsx
  • src/fsl.tools/site/components/Hero.jsx
  • src/fsl.tools/site/components/Install.jsx
  • src/fsl.tools/site/components/Learn.jsx
  • src/fsl.tools/site/components/Nav.jsx
  • src/fsl.tools/site/components/cookbook-data.jsx
  • src/fsl.tools/site/components/cookbook-highlight.jsx
  • src/fsl.tools/site/recipes/composition-per-entity.cjs
  • src/fsl.tools/site/recipes/composition-react.cjs
  • src/fsl.tools/site/recipes/hooks-entry.cjs
  • src/fsl.tools/site/recipes/hooks-log.cjs
  • src/fsl.tools/site/recipes/hooks-payload.cjs
  • src/fsl.tools/site/recipes/patterns-acyclic.cjs
  • src/fsl.tools/site/recipes/patterns-auth.cjs
  • src/fsl.tools/site/recipes/patterns-branch.cjs
  • src/fsl.tools/site/recipes/patterns-cycle.cjs
  • src/fsl.tools/site/recipes/patterns-fetch.cjs
  • src/fsl.tools/site/recipes/patterns-overlapping-groups.cjs
  • src/fsl.tools/site/recipes/patterns-toggle.cjs
  • src/fsl.tools/site/recipes/patterns-user-account-groups.cjs
  • src/fsl.tools/site/recipes/real-world-fetch-retry.cjs
  • src/fsl.tools/site/recipes/real-world-multi-step-form.cjs
  • src/fsl.tools/site/recipes/real-world-optimistic.cjs
  • src/fsl.tools/site/recipes/real-world-testing.cjs
  • src/fsl.tools/site/recipes/test-jest-webpack-react.cjs
  • src/fsl.tools/site/recipes/test-vitest-vite-react.cjs
  • src/fsl.tools/site/recipes/test-vitest-vite-vue.cjs
  • src/fsl.tools/site/scripts/build.cjs

sketch/ (13)

  • sketch/cm6-editor/completion.mjs
  • sketch/cm6-editor/diagnostics.mjs
  • sketch/cm6-editor/docs_index_search.mjs
  • sketch/cm6-editor/docs_panel.mjs
  • sketch/cm6-editor/editor.js
  • sketch/cm6-editor/editor_theme.mjs
  • sketch/cm6-editor/layout.mjs
  • sketch/cm6-editor/markdown_mini.mjs
  • sketch/cm6-editor/semantic_overlay.mjs
  • sketch/cm6-editor/splitter.mjs
  • sketch/cm6-editor/tests/docs_panel.e2e.mjs
  • sketch/cm6-editor/tests/markdown_mini.test.mjs
  • sketch/cm6-lang-fsl/index.js

src/ts/tests/cli/fixtures/plugins (3)

  • src/ts/tests/cli/fixtures/plugins/fsl-bad-exits.cjs
  • src/ts/tests/cli/fixtures/plugins/fsl-good.cjs
  • src/ts/tests/cli/fixtures/plugins/fsl-no-default.cjs

examples/fsl-editor (1)

  • examples/fsl-editor/_demo_entry.ts

Why it matters

  • Some of these files run the release. src/scripts/publish_workspaces.cjs performs the npm publish of all seven packages. The 18 rollup.config.*.js files decide what goes into every published bundle. src/scripts/graviton_envelope.cjs is the pre-release performance check. src/scripts/make_method_function_table.cjs generates the method-to-function table in MIGRATING-5-to-6.md.
  • 37 of the specs are also never type-checked: the 25 under src/buildjs/tests and the 12 under src/scripts/tests. They do run, because vitest.spec.config.ts includes **/*.spec.ts. But tsconfig.test.json (the typecheck_tests step) includes only src/ts/**/*, and vitest strips types without checking them. A spec here can import a type that no longer exists, or pin a signature that has since changed, and still pass. That is the hole tsconfig.test.json was created to close for src/ts, as its own header explains.
  • sketch/ is not dead code. src/ts/tests/diagnostics_helper.spec.ts imports sketch/cm6-editor/diagnostics.mjs, so a spec in the gated suite depends on an unlinted prototype file. The directory was last touched on 2026-06-28.
  • New files land in the gap by default. jssm#1002 adds src/buildjs/tests/verify_version_bump.stoch.ts, which becomes the 147th when it merges.

Suggested approach

Several small PRs, not one. Turning rules on across 146 files will produce a large first wave of findings, and the release-critical files are the ones that should not churn near a release.

  1. src/buildjs .ts and .mjs (27 files). These are already handed to eslint. Extend the buildjs block's globs for the two non-test files, and give src/buildjs/**/tests/** the same syntax-plus-vitest tier that src/ts/**/tests/** has.
  2. src/scripts (36 files). The same node-scoped CommonJS tier as src/buildjs, and add the directory to the eslint script.
  3. Root configs (29 files). A small block each for the ESM configs, the one CommonJS config, and the TypeScript configs.
  4. Type-check the 37 specs. Widen tsconfig.test.json, or add a sibling project for src/buildjs/tests and src/scripts/tests, wired into the build the way typecheck_tests is.
  5. src/fsl.tools/site (37 files). This one needs a decision first. The config header records that eslint-plugin-react was dropped because jssm has no React runtime and no JSX, and the site is JSX. Either lint it with a JSX-aware block, or list it in ignores with the reason.
  6. sketch/ (13 files). Also a decision: move diagnostics.mjs into src/ts, since a live spec depends on it, and then delete or explicitly ignore the rest.
  7. A guard, last. A check beside the existing verify_* gates in src/buildjs that fails when a tracked code file is neither matched by a config block nor listed in ignores, so the gap cannot reopen quietly.

Anything deliberately left out belongs in ignores with a reason, the way the four generated paths already are.

Not part of this issue

  • Turning on strict in tsconfig, and the no-unsafe-* rules that wait on it: fsl#712.
  • The rule-level opt-outs already recorded with their reasons in eslint.config.mjs.

Reproducing the list

git grep -l -I "" <ref> -- "*.ts" "*.cjs" "*.mjs" "*.js" "*.cts" "*.mts" "*.tsx" "*.jsx" ":!dist/*" ":!docs/*" ":!packages/*/dist/*" ":!src/ts/*.ts" ":!src/buildjs/*.cjs" ":!src/buildjs/*.js" ":!*.d.ts" ":!*.d.cts" ":!*.d.mts"

In a git pathspec * crosses directory separators, so :!src/ts/*.ts excludes at every depth.

Activity

  1. added this to the v6 — The Ground milestone on Nov 12, 2026
  2. added
    Tooling
    Chore
    Static analysis
    Created by AI
    Technical debt
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ChoreCreated by AIStatic analysisTechnical debtTooling

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions