From 7ddd4caf47d3e464061d895b23f4fb0a1dbfcce8 Mon Sep 17 00:00:00 2001 From: boojack Date: Tue, 14 Dec 2021 06:51:06 +0800 Subject: [PATCH] chore: update eslint config --- web/.eslintrc.json | 7 ++++++- web/.vscode/setting.json | 6 ++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/web/.eslintrc.json b/web/.eslintrc.json index b144ee76f..061334277 100644 --- a/web/.eslintrc.json +++ b/web/.eslintrc.json @@ -15,7 +15,12 @@ "plugins": ["react", "@typescript-eslint", "prettier"], "ignorePatterns": ["node_modules", "dist", "public"], "rules": { - "prettier/prettier": "error", + "prettier/prettier": [ + "error", + { + "endOfLine": "auto" + } + ], "@typescript-eslint/no-empty-interface": ["off"], "@typescript-eslint/no-explicit-any": ["off"], "react/react-in-jsx-scope": "off", diff --git a/web/.vscode/setting.json b/web/.vscode/setting.json index 6c71edb30..a604d6df3 100644 --- a/web/.vscode/setting.json +++ b/web/.vscode/setting.json @@ -1,8 +1,6 @@ { - "eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "vue"], + "eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"], "editor.codeActionsOnSave": { "source.fixAll.eslint": true - }, - "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode" + } }