From 327cf5e2751cb8b6c6205bd6211d1b425c808cba Mon Sep 17 00:00:00 2001 From: Simon Golms Date: Sat, 18 Nov 2023 23:02:15 +0100 Subject: [PATCH 1/2] chore(deps): update dependencies - uninstal @types/yargs@17.0.19 --- package-lock.json | 1 - package.json | 1 - 2 files changed, 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 45ac252..a677a64 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,7 +26,6 @@ "@types/jest": "29.5.8", "@types/node": "20.9.2", "@types/qrcode": "1.5.5", - "@types/yargs": "17.0.19", "dotenv-cli": "7.3.0", "eslint": "8.54.0", "eslint-config-prettier": "9.0.0", diff --git a/package.json b/package.json index e7881e1..53288aa 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,6 @@ "@types/jest": "29.5.8", "@types/node": "20.9.2", "@types/qrcode": "1.5.5", - "@types/yargs": "17.0.19", "dotenv-cli": "7.3.0", "eslint": "8.54.0", "eslint-config-prettier": "9.0.0", From 7ab72e333803613554f80d2e4673f3eddcd9e5d9 Mon Sep 17 00:00:00 2001 From: Simon Golms Date: Sat, 18 Nov 2023 23:02:47 +0100 Subject: [PATCH 2/2] chore(typescript): use extra eslint configuration --- .eslintrc.js | 5 ++++- tsconfig.eslint.json | 7 +++++++ tsconfig.json | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 tsconfig.eslint.json diff --git a/.eslintrc.js b/.eslintrc.js index 79157ae..688d08b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,4 +1,4 @@ -/** @type {import('eslint').ESLint.ConfigData} */ +/** @type {import('eslint').ESLint.ConfigData & { parserOptions: import('eslint').ESLint.ConfigData['parserOptions'] & import('@typescript-eslint/parser').ParserOptions } } */ module.exports = { env: { 'jest/globals': true, @@ -11,6 +11,9 @@ module.exports = { 'plugin:prettier/recommended', ], ignorePatterns: ['coverage', 'lib', 'node_modules'], + parserOptions: { + project: './tsconfig.eslint.json', + }, rules: { '@typescript-eslint/consistent-type-definitions': ['error', 'type'], 'jest/consistent-test-it': ['error', { fn: 'test' }], diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json new file mode 100644 index 0000000..1a8f93a --- /dev/null +++ b/tsconfig.eslint.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "rootDir": "." + }, + "extends": "./tsconfig.json", + "include": [".", "./.eslintrc.js", "./.releaserc.js", "./jest.config.ts"] +} diff --git a/tsconfig.json b/tsconfig.json index 986aa5e..fa2d6ca 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,6 +11,6 @@ "target": "es5", "types": ["jest", "node"] }, - "include": ["src/**/*", "./.eslintrc.js", "./.releaserc.js", "./jest.config.ts"], + "include": ["src/**/*"], "exclude": ["node_modules"] }