From b05c4758412ea77e3da84dcc9170c02e840ef33d Mon Sep 17 00:00:00 2001 From: Spedon Date: Tue, 14 Mar 2023 01:00:07 +0800 Subject: [PATCH] setup eslint for typescript config --- .eslintrc.json | 1 + tsconfig.json | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tsconfig.json diff --git a/.eslintrc.json b/.eslintrc.json index 26b6933..122076d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -12,6 +12,7 @@ "plugins": ["prettier"], "parserOptions": { "ecmaVersion": "latest", + "project": "./tsconfig.json", "sourceType": "module" }, "rules": { diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..a7acaa3 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,15 @@ +{ + "compilerOptions": { + "watch": false, + "lib": ["esnext", "dom"], + "removeComments": true, + "target": "es2021", + "module": "esnext", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true + }, + "$schema": "https://json.schemastore.org/tsconfig", + "display": "Recommended" +} \ No newline at end of file