From aa5ba28433d456acce2cbdc07f986219774c6e1f Mon Sep 17 00:00:00 2001 From: nico1988 <410827024@qq.com> Date: Sat, 11 Feb 2023 17:01:59 +0800 Subject: [PATCH] feat: deleate typescript-eslint/parser --- .prettierrc | 1 - .vscode/extensions.json | 2 +- .vscode/settings.json | 4 +++- app/layout.tsx | 2 +- app/page.tsx | 2 +- package.json | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.prettierrc b/.prettierrc index 81766c6..25a3a61 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,4 @@ { - "parser": "@typescript-eslint/parser", "extends": [ "plugin:@typescript-eslint/recommended", "plugin:react/recommended", diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 909c97b..c99c624 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,6 +1,6 @@ { "recommendations": [ "dbaeumer.vscode-eslint", - "rvest.vs-code-prettier-eslint" + "esbenp.prettier-vscode" ] } \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 0a7382a..b486899 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -11,6 +11,8 @@ "editor.defaultFormatter": "esbenp.prettier-vscode", "typescript.updateImportsOnFileMove.enabled": "always", "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": true, + "source.fixAll.stylelint": true, + "eslint.autoFixOnSave": true, } } \ No newline at end of file diff --git a/app/layout.tsx b/app/layout.tsx index f77f0af..6b6e9ea 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -7,7 +7,7 @@ export default function RootLayout({ }) { return ( -
+ {children} ); diff --git a/app/page.tsx b/app/page.tsx index f889864..41f5098 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -7,7 +7,7 @@ function Index() { Hello, Next.js 13! -