setup eslint for typescript config

This commit is contained in:
Spedon
2023-03-14 01:00:07 +08:00
parent 15ace4dc7a
commit b05c475841
2 changed files with 16 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
"plugins": ["prettier"],
"parserOptions": {
"ecmaVersion": "latest",
"project": "./tsconfig.json",
"sourceType": "module"
},
"rules": {

15
tsconfig.json Normal file
View File

@@ -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"
}