22 lines
555 B
JavaScript
22 lines
555 B
JavaScript
import js from "@eslint/js";
|
|
import eslintPluginAstro from "eslint-plugin-astro";
|
|
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
|
|
import { defineConfig } from "eslint/config";
|
|
import jsxA11y from "eslint-plugin-jsx-a11y";
|
|
|
|
export default defineConfig([
|
|
{
|
|
files: ["**/*.{js,mjs}"],
|
|
plugins: { js },
|
|
extends: ["js/recommended"],
|
|
},
|
|
{
|
|
files: ["**/*.{astro,html}"],
|
|
plugins: {
|
|
"jsx-a11y": jsxA11y,
|
|
},
|
|
},
|
|
...eslintPluginAstro.configs.recommended,
|
|
eslintPluginPrettierRecommended,
|
|
]);
|