From aa302186989b9f03bd776c0ade1af2e67185cd9c Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Thu, 28 Sep 2023 08:47:47 +0800 Subject: [PATCH] chore: fix eslint vscode setup --- .vscode/settings.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 934bc2f..5deaeff 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,7 +3,10 @@ "*.css": "postcss" }, - // Disable the default formatter + // Enable the ESlint flat config support + "eslint.experimental.useFlatConfig": true, + + // Disable the default formatter, use eslint instead "prettier.enable": false, "editor.formatOnSave": false, @@ -26,10 +29,7 @@ { "rule": "*semi", "severity": "off" } ], - // The following is optional. - // It's better to put under project setting `.vscode/settings.json` - // to avoid conflicts with working with different eslint configs - // that does not support all formats. + // Enable eslint for all supported languages "eslint.validate": [ "javascript", "javascriptreact",