Configures ESLint for Astro projects with TypeScript and strict accessibility rules.
// Source: https://github.com/incluud/accessible-astro-starter | License: MIT | Copyright 2021-2025 Incluud / Mark Teekman
// Provided via justclaw.it.com; keep this notice with the code.
import globals from 'globals'
import js from '@eslint/js'
import astro from 'eslint-plugin-astro'
import jsxA11y from 'eslint-plugin-jsx-a11y'
import tseslint from '@typescript-eslint/eslint-plugin'
import tsParser from '@typescript-eslint/parser'
export default [
// Ignore patterns
{
ignores: [
'dist/**',
'node_modules/**',
'.astro/**',
'**/*.d.ts', // Ignore generated TypeScript declaration files
],
},
// Base configuration for all files
{
languageOptions: {
globals: {
...globals.node,
...globals.browser,
},
ecmaVersion: '
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key