build: upgrade ESLint and its related packages

This commit is contained in:
satnaing
2025-02-25 19:57:49 +07:00
committed by Sat Naing
parent 90231031a5
commit d167f6295d
4 changed files with 27 additions and 53 deletions
+20
View File
@@ -0,0 +1,20 @@
import eslintPluginAstro from "eslint-plugin-astro";
import globals from "globals";
import jsxA11y from "eslint-plugin-jsx-a11y";
import tseslint from "typescript-eslint";
export default [
jsxA11y.flatConfigs.recommended,
...tseslint.configs.recommended,
...eslintPluginAstro.configs.recommended,
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
},
{ rules: { "no-console": "error" } },
{ ignores: ["dist/**", ".astro"] },
];