feat(prettier): add prettier formatting

This commit is contained in:
Shintaro Jokagi 2025-05-28 13:43:44 +12:00
parent 01f4dac75d
commit 7fafa6bc69
No known key found for this signature in database
GPG key ID: 0DDF8FA44C9A0DA8
85 changed files with 5670 additions and 2788 deletions

View file

@ -1,28 +1,28 @@
import type { Linter } from "eslint";
// @ts-expect-error - no types available
import jsxA11y from "eslint-plugin-jsx-a11y";
import { astroFiles } from "./shared";
import { type Linter } from 'eslint'
import jsxA11y from 'eslint-plugin-jsx-a11y'
import { astroFiles } from './shared'
export const astroConfig: Linter.Config = {
name: "eslint/astro",
name: 'eslint/astro',
files: astroFiles,
plugins: {
"jsx-a11y": jsxA11y,
'jsx-a11y': jsxA11y,
},
rules: {
// Astro specific adjustments
"@typescript-eslint/no-unused-vars": "off", // Astro components can have unused props
"import/no-unresolved": "off",
"no-undef": "off", // Astro has global variables like Astro
'@typescript-eslint/no-unused-vars': 'off', // Astro components can have unused props
'import/no-unresolved': 'off',
'no-undef': 'off', // Astro has global variables like Astro
// A11y rules for Astro
"jsx-a11y/alt-text": "error",
"jsx-a11y/anchor-has-content": "error",
"jsx-a11y/anchor-is-valid": "error",
"jsx-a11y/click-events-have-key-events": "error",
"jsx-a11y/interactive-supports-focus": "error",
"jsx-a11y/no-redundant-roles": "error",
"jsx-a11y/img-redundant-alt": "error",
"jsx-a11y/no-access-key": "error",
'jsx-a11y/alt-text': 'error',
'jsx-a11y/anchor-has-content': 'error',
'jsx-a11y/anchor-is-valid': 'error',
'jsx-a11y/click-events-have-key-events': 'error',
'jsx-a11y/interactive-supports-focus': 'error',
'jsx-a11y/no-redundant-roles': 'error',
'jsx-a11y/img-redundant-alt': 'error',
'jsx-a11y/no-access-key': 'error',
},
};
}