meta: change eslint styling and tsconfig project config
This commit is contained in:
parent
e6d6764e34
commit
13e993b964
3 changed files with 11 additions and 3 deletions
|
@ -2,11 +2,12 @@
|
|||
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended-type-checked"],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"project": "./tsconfig.json"
|
||||
"project": "./tsconfig.eslint.json"
|
||||
},
|
||||
"rules": {
|
||||
"@typescript-eslint/no-floating-promises": "warn",
|
||||
"@typescript-eslint/no-unsafe-declaration-merging": "warn",
|
||||
"@typescript-eslint/no-unused-vars": "warn",
|
||||
"@typescript-eslint/semi": ["error", "always"],
|
||||
"semi": "off",
|
||||
"eol-last": ["error", "always"],
|
||||
|
|
4
tsconfig.eslint.json
Normal file
4
tsconfig.eslint.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"include": ["**/*"],
|
||||
"extends": ["./tsconfig.json"]
|
||||
}
|
|
@ -1,13 +1,16 @@
|
|||
{
|
||||
"include": [
|
||||
"./src/**/*"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"module": "commonjs",
|
||||
"module": "CommonJS",
|
||||
"sourceMap": true,
|
||||
"outDir": "./dist/",
|
||||
"rootDir": "./src/",
|
||||
"strict": true,
|
||||
"moduleResolution": "node",
|
||||
"esModuleInterop": true,
|
||||
"resolveJsonModule": true,
|
||||
"resolveJsonModule": true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue