-
chore(misc): ignore generated banner.json in astro-docs lint (#35404)
发布于
2026-04-23 13:33:13 +00:00 Current Behavior
The project's eslint config ignores common generated directories
(dist/,.astro/,.netlify/, ...) but not
astro-docs/src/content/banner.json. That file is a build artifact
produced at prebuild time byastro-docs:prebuild-banner(fetches
banner config from a remote URL and writes it to disk) and is
.gitignored. The root eslint config registersjsonc-eslint-parser
for**/*.json, soeslint .walks into this generated file and parses
it — wasted work, and its content is irrelevant to lint correctness.As a side effect, the undeclared read also shows up as a sandbox
violation forastro-docs:lintbecause Nx's{projectRoot}/**/*input
expansion (correctly) excludes gitignored files.Expected Behavior
astro-docs/eslint.config.mjsexcludes the generated banner file
alongside the other build-artifact paths it already ignores, so eslint
no longer reads it. The sandbox violation disappears as a consequence.下载附件