Skip to content

Commit 8745774

Browse files
authored
chore(misc): ignore generated banner.json in astro-docs lint (#35404)
## 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 by `astro-docs:prebuild-banner` (fetches banner config from a remote URL and writes it to disk) and is `.gitignore`d. The root eslint config registers `jsonc-eslint-parser` for `**/*.json`, so `eslint .` 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 for `astro-docs:lint` because Nx's `{projectRoot}/**/*` input expansion (correctly) excludes gitignored files. ## Expected Behavior `astro-docs/eslint.config.mjs` excludes 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.
1 parent 82e7afe commit 8745774

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

astro-docs/eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export default [
1818
'.netlify/',
1919
'test-output/',
2020
'playwright-report/',
21+
'src/content/banner.json',
2122
],
2223
},
2324
];

0 commit comments

Comments
 (0)