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"],
|
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended-type-checked"],
|
||||||
"parser": "@typescript-eslint/parser",
|
"parser": "@typescript-eslint/parser",
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"project": "./tsconfig.json"
|
"project": "./tsconfig.eslint.json"
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
"@typescript-eslint/no-floating-promises": "warn",
|
"@typescript-eslint/no-floating-promises": "warn",
|
||||||
"@typescript-eslint/no-unsafe-declaration-merging": "warn",
|
"@typescript-eslint/no-unsafe-declaration-merging": "warn",
|
||||||
|
"@typescript-eslint/no-unused-vars": "warn",
|
||||||
"@typescript-eslint/semi": ["error", "always"],
|
"@typescript-eslint/semi": ["error", "always"],
|
||||||
"semi": "off",
|
"semi": "off",
|
||||||
"eol-last": ["error", "always"],
|
"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": {
|
"compilerOptions": {
|
||||||
"target": "ES2022",
|
"target": "ES2022",
|
||||||
"module": "commonjs",
|
"module": "CommonJS",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"outDir": "./dist/",
|
"outDir": "./dist/",
|
||||||
"rootDir": "./src/",
|
"rootDir": "./src/",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue