meta: change eslint styling and tsconfig project config

This commit is contained in:
Wroclaw 2023-09-18 10:41:54 +02:00
parent e6d6764e34
commit 13e993b964
3 changed files with 11 additions and 3 deletions

View file

@ -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
View file

@ -0,0 +1,4 @@
{
"include": ["**/*"],
"extends": ["./tsconfig.json"]
}

View file

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