From 13e993b9640e7f13d1caeb0db99e47e56cd29af6 Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Mon, 18 Sep 2023 10:41:54 +0200 Subject: [PATCH] meta: change eslint styling and tsconfig project config --- .eslintrc.json | 3 ++- tsconfig.eslint.json | 4 ++++ tsconfig.json | 7 +++++-- 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 tsconfig.eslint.json diff --git a/.eslintrc.json b/.eslintrc.json index 88c772c..2c7e934 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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"], diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json new file mode 100644 index 0000000..87ed905 --- /dev/null +++ b/tsconfig.eslint.json @@ -0,0 +1,4 @@ +{ + "include": ["**/*"], + "extends": ["./tsconfig.json"] +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 510958d..66df360 100644 --- a/tsconfig.json +++ b/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 } }