Ellie-Blog/eslint.config.mjs
Toastie 69db7ab825
Finally updated
This took way too long
2025-01-22 01:36:44 +13:00

44 lines
975 B
JavaScript

import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
import astroParser from "astro-eslint-parser";
import eslintPluginAstro from "eslint-plugin-astro";
export default [
js.configs.recommended,
...tseslint.configs.recommended,
...eslintPluginAstro.configs.recommended,
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
},
{
files: ["*.astro"],
languageOptions: {
parser: astroParser,
parserOptions: {
parser: "@typescript-eslint/parser",
extraFileExtensions: [".astro"],
},
},
},
{
files: ["tailwind.config.cjs", "**/*.d.ts"],
rules: {
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/triple-slash-reference": "off",
},
},
{
rules: {
"@typescript-eslint/no-unused-expressions": "off",
},
},
{
ignores: ["dist/**", ".astro"],
},
];