fix: use js config

This commit is contained in:
hamster1963 2024-12-13 15:33:28 +08:00
parent ecd4688ec9
commit 74418c6ae5
2 changed files with 6 additions and 1 deletions

View File

@ -5,7 +5,12 @@ import tseslint from "typescript-eslint"
export default tseslint.config( export default tseslint.config(
{ ignores: [".next"] }, { ignores: [".next"] },
{ {
extends: [js.configs.recommended, ...tseslint.configs.recommended,"next/core-web-vitals", "next/typescript"], extends: [
js.configs.recommended,
...tseslint.configs.recommended,
"next/core-web-vitals",
"next/typescript",
],
files: ["**/*.{ts,tsx}"], files: ["**/*.{ts,tsx}"],
languageOptions: { languageOptions: {
ecmaVersion: 2020, ecmaVersion: 2020,