From 92b3e86642e2e3186b7a4c991c662eaf73ce5640 Mon Sep 17 00:00:00 2001 From: 100pah Date: Sat, 21 Mar 2020 07:54:10 +0800 Subject: [PATCH] ts: record hint --- src/.eslintrc.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/.eslintrc.yaml b/src/.eslintrc.yaml index 1b663c4bf..5d151f62f 100644 --- a/src/.eslintrc.yaml +++ b/src/.eslintrc.yaml @@ -1,3 +1,15 @@ +# Note: +# If eslint does not work in VSCode, please check: +# (1) Whether "@typescript-eslint/eslint-plugin" and "@typescript-eslint/parser" +# are npm installed locally. Should better in the same version. +# (2) Whether "VSCode ESlint extension" is installed. +# (3) If the project folder is not the root folder of your working space, please +# config the "VSCode ESlint extension" in "settings": +# ```json +# "eslint.workingDirectories": [{"mode": "auto"}] +# ``` +# Note that it should be "workingDirectories" rather than "WorkingDirectories". + parser: "@typescript-eslint/parser" parserOptions: ecmaVersion: 6 -- GitLab