mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 07:33:07 +08:00
build: upgrade ESLint and its related packages
This commit is contained in:
@@ -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"] },
|
||||
];
|
||||
Reference in New Issue
Block a user