@webgrip/eslint-config-astro (0.2.0)

Published 2026-09-04 11:23:17 +00:00 by webgrip-ci in webgrip/frontend-toolkit

Installation

@webgrip:registry=
npm install @webgrip/eslint-config-astro@0.2.0
"@webgrip/eslint-config-astro": "0.2.0"

About this package

@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.

Dependencies

Dependencies

ID Version
@eslint/js ^10.0.1
eslint-plugin-astro ^3.1.0
typescript-eslint ^8.66.0

Peer dependencies

ID Version
eslint ^10.0.0
Details
npm
2026-09-04 11:23:17 +00:00
2
MIT
latest
1.5 KiB
Assets (1)
Versions (2) View all
0.2.0 2026-09-04
0.1.0 2026-09-04