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"],
"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
View file

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

View file

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