@webgrip/eslint-config-astro
v0.2.0
Published
Shared ESLint flat config for Webgrip Astro static sites. Import the array, spread it, append repo-specific overrides.
Readme
@webgrip/eslint-config-astro
Shared ESLint flat config for Webgrip Astro static sites: @eslint/js recommended +
typescript-eslint recommended + eslint-plugin-astro recommended, plus the house rules
(inline type imports, underscore-prefixed unused vars, no-console warn with scripts exempt).
Usage
// eslint.config.js
import { defineConfig } from 'eslint/config';
import webgrip from '@webgrip/eslint-config-astro';
export default defineConfig([
...webgrip,
// Repo-specific entries go here — this seam is the point. Example (twente.dev):
// {
// files: ['scripts/export-banners.mjs'],
// languageOptions: { globals: { document: 'readonly' } },
// },
]);eslint stays a devDependency of the consumer; the plugins ride in with this package.
