starlight
Sets up the environment for Starlight documentation sites. Includes browser globals and the full eslint-plugin-astro recommended configuration for .astro file linting.
What’s included
Section titled “What’s included”- Browser globals
eslint-plugin-astroflat/recommended configs (parser, processor, and rules for.astrofiles)AstroandFragmentglobals (provided by the astro plugin)
Default file patterns
Section titled “Default file patterns”["src/**/*.{js,mjs,cjs}", "docs/**/*.{js,mjs,cjs}"]The astro plugin configs additionally target *.astro, **/*.astro/*.js, and **/*.astro/*.ts files.
Options
Section titled “Options”uglify({ with: ["starlight"], options: { starlight: { files: ["src/**/*.{js,mjs}"], additionalGlobals: { myGlobal: "readonly", }, }, },})