From cbef42193bf993d0367486173a9eb74c3f7563f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ali=20=C4=B0hsan?= Date: Tue, 22 Aug 2023 15:56:41 +0300 Subject: [PATCH] node modules to eslint ignore --- .eslintignore | 1 + package.json | 4 ++-- src/config.ts | 1 + tsconfig.json | 4 ++-- yarn.lock | 4 ++-- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.eslintignore b/.eslintignore index d8f8d46..70dba15 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,2 @@ docs +/node_modules diff --git a/package.json b/package.json index 0f9356a..fc85998 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "test:cov": "jest --coverage", "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", "test:e2e": "jest --config ./test/jest-e2e.json --runInBand", - "lint:tsc": "tsc", + "lint:tsc": "tsc --skipLibCheck", "lint:eslint": "eslint 'src/**/*.ts'", "lint": "yarn lint:tsc && yarn lint:eslint", "format": "prettier --write 'src/**/*.ts' && yarn lint:eslint --fix", @@ -40,7 +40,7 @@ "prettier": "^2.0.5", "taffydb": "^2.7.3", "ts-jest": "^26.1.1", - "typescript": "^3.9.5" + "typescript": "^4.9.5" }, "engines": { "node": ">=14.0.0" diff --git a/src/config.ts b/src/config.ts index fb954e0..c5a924e 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,4 +1,5 @@ /** * @type {Config} */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any export type Config = { [key in string]: any }; diff --git a/tsconfig.json b/tsconfig.json index 7f0fff6..585217b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,9 +15,9 @@ "noFallthroughCasesInSwitch": true, "forceConsistentCasingInFileNames": true, "esModuleInterop": true, - "skipLibCheck": true + "skipLibCheck": true, }, "include": [ "src/**/*" - ] + ], } diff --git a/yarn.lock b/yarn.lock index d17bf94..9f66bca 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5799,12 +5799,12 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typescript@^3.2.2, typescript@^3.9.5: +typescript@^3.2.2: version "3.9.10" resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.10.tgz#70f3910ac7a51ed6bef79da7800690b19bf778b8" integrity sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q== -typescript@^4.5.4: +typescript@^4.5.4, typescript@^4.9.5: version "4.9.5" resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==