From 125004875147a5c331459dff35015633bd7b00b7 Mon Sep 17 00:00:00 2001 From: LiaoLiao Date: Sat, 21 Sep 2024 22:33:19 +0800 Subject: [PATCH] build: refactor tsconfig & eslint config --- eslint.config.js | 6 +- package.json | 4 +- packages/node-redis/tsconfig.json | 7 +- .../test/cluster/e2e/health.e2e-spec.ts | 3 +- .../test/redis/e2e/health.e2e-spec.ts | 3 +- packages/redis-health/tsconfig.json | 7 +- packages/redis/tsconfig.json | 7 +- ...tsconfig.build.json => tsconfig.base.json} | 4 +- pnpm-lock.yaml | 102 +++++++++--------- tsconfig.json | 2 +- 10 files changed, 69 insertions(+), 76 deletions(-) rename packages/{tsconfig.build.json => tsconfig.base.json} (73%) diff --git a/eslint.config.js b/eslint.config.js index 79f39b6f..d0b4daad 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,11 +1,11 @@ import eslint from '@eslint/js'; import tseslint from 'typescript-eslint'; import globals from 'globals'; -import prettier from 'eslint-plugin-prettier/recommended'; +import prettierPlugin from 'eslint-plugin-prettier/recommended'; // @ts-ignore import jest from 'eslint-plugin-jest'; -const jestFiles = ['packages/*/test/**/*', 'packages/**/*.spec.ts']; +const jestFiles = ['packages/*/test/**/*', 'packages/*/lib/**/*.spec.ts']; export default tseslint.config( { @@ -22,7 +22,7 @@ export default tseslint.config( files: jestFiles, ...jest.configs['flat/style'] }, - prettier, + prettierPlugin, { languageOptions: { globals: { diff --git a/package.json b/package.json index f7885dee..0e0f9238 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@commitlint/cli": "19.5.0", "@commitlint/config-conventional": "19.5.0", - "@eslint/js": "9.10.0", + "@eslint/js": "9.11.0", "@nestjs/common": "10.4.3", "@nestjs/core": "10.4.3", "@nestjs/platform-fastify": "10.4.3", @@ -22,7 +22,7 @@ "@types/jest": "29.5.13", "@types/node": "20.16.5", "concurrently": "9.0.1", - "eslint": "9.10.0", + "eslint": "9.11.0", "eslint-config-prettier": "9.1.0", "eslint-plugin-jest": "28.8.3", "eslint-plugin-prettier": "5.2.1", diff --git a/packages/node-redis/tsconfig.json b/packages/node-redis/tsconfig.json index 3e74700f..b3b8b5cc 100644 --- a/packages/node-redis/tsconfig.json +++ b/packages/node-redis/tsconfig.json @@ -1,10 +1,9 @@ { - "extends": "../tsconfig.build.json", + "extends": "../tsconfig.base.json", "compilerOptions": { - "baseUrl": ".", - "outDir": "./dist", + "outDir": "dist", "paths": { - "@/*": ["lib/*"] + "@/*": ["./lib/*"] } }, "include": ["lib", "test"], diff --git a/packages/redis-health/test/cluster/e2e/health.e2e-spec.ts b/packages/redis-health/test/cluster/e2e/health.e2e-spec.ts index d488ca3f..7d3a8e99 100644 --- a/packages/redis-health/test/cluster/e2e/health.e2e-spec.ts +++ b/packages/redis-health/test/cluster/e2e/health.e2e-spec.ts @@ -1,6 +1,5 @@ import { Test, TestingModule } from '@nestjs/testing'; import { NestFastifyApplication, FastifyAdapter } from '@nestjs/platform-fastify'; -import { FastifyInstance } from 'fastify'; import { AppModule } from '../src/app.module'; describe('HealthController (e2e)', () => { @@ -12,7 +11,7 @@ describe('HealthController (e2e)', () => { }).compile(); app = module.createNestApplication(new FastifyAdapter()); await app.init(); - await (app.getHttpAdapter().getInstance() as FastifyInstance).ready(); + await app.getHttpAdapter().getInstance().ready(); }); afterAll(async () => { diff --git a/packages/redis-health/test/redis/e2e/health.e2e-spec.ts b/packages/redis-health/test/redis/e2e/health.e2e-spec.ts index d488ca3f..7d3a8e99 100644 --- a/packages/redis-health/test/redis/e2e/health.e2e-spec.ts +++ b/packages/redis-health/test/redis/e2e/health.e2e-spec.ts @@ -1,6 +1,5 @@ import { Test, TestingModule } from '@nestjs/testing'; import { NestFastifyApplication, FastifyAdapter } from '@nestjs/platform-fastify'; -import { FastifyInstance } from 'fastify'; import { AppModule } from '../src/app.module'; describe('HealthController (e2e)', () => { @@ -12,7 +11,7 @@ describe('HealthController (e2e)', () => { }).compile(); app = module.createNestApplication(new FastifyAdapter()); await app.init(); - await (app.getHttpAdapter().getInstance() as FastifyInstance).ready(); + await app.getHttpAdapter().getInstance().ready(); }); afterAll(async () => { diff --git a/packages/redis-health/tsconfig.json b/packages/redis-health/tsconfig.json index 1687379f..de5d59dd 100644 --- a/packages/redis-health/tsconfig.json +++ b/packages/redis-health/tsconfig.json @@ -1,11 +1,10 @@ { - "extends": "../tsconfig.build.json", + "extends": "../tsconfig.base.json", "compilerOptions": { - "baseUrl": ".", - "outDir": "./dist", + "outDir": "dist", "paths": { "@/*": ["../redis/lib/*"], - "@health/*": ["lib/*"] + "@health/*": ["./lib/*"] } }, "include": ["lib", "test"], diff --git a/packages/redis/tsconfig.json b/packages/redis/tsconfig.json index 3e74700f..b3b8b5cc 100644 --- a/packages/redis/tsconfig.json +++ b/packages/redis/tsconfig.json @@ -1,10 +1,9 @@ { - "extends": "../tsconfig.build.json", + "extends": "../tsconfig.base.json", "compilerOptions": { - "baseUrl": ".", - "outDir": "./dist", + "outDir": "dist", "paths": { - "@/*": ["lib/*"] + "@/*": ["./lib/*"] } }, "include": ["lib", "test"], diff --git a/packages/tsconfig.build.json b/packages/tsconfig.base.json similarity index 73% rename from packages/tsconfig.build.json rename to packages/tsconfig.base.json index d4ab6a5f..d3f53d58 100644 --- a/packages/tsconfig.build.json +++ b/packages/tsconfig.base.json @@ -5,13 +5,11 @@ "declaration": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "allowSyntheticDefaultImports": true, "target": "ES2021", "lib": ["ES2023"], "esModuleInterop": true, "importHelpers": true, "strict": true, - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true + "skipLibCheck": true } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b6300d69..80842780 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,8 +15,8 @@ importers: specifier: 19.5.0 version: 19.5.0 '@eslint/js': - specifier: 9.10.0 - version: 9.10.0 + specifier: 9.11.0 + version: 9.11.0 '@nestjs/common': specifier: 10.4.3 version: 10.4.3(reflect-metadata@0.2.2)(rxjs@7.8.1) @@ -45,17 +45,17 @@ importers: specifier: 9.0.1 version: 9.0.1 eslint: - specifier: 9.10.0 - version: 9.10.0(jiti@1.21.6) + specifier: 9.11.0 + version: 9.11.0(jiti@1.21.6) eslint-config-prettier: specifier: 9.1.0 - version: 9.1.0(eslint@9.10.0(jiti@1.21.6)) + version: 9.1.0(eslint@9.11.0(jiti@1.21.6)) eslint-plugin-jest: specifier: 28.8.3 - version: 28.8.3(@typescript-eslint/eslint-plugin@8.6.0(@typescript-eslint/parser@8.6.0(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2))(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2))(eslint@9.10.0(jiti@1.21.6))(jest@29.7.0(@types/node@20.16.5))(typescript@5.6.2) + version: 28.8.3(@typescript-eslint/eslint-plugin@8.6.0(@typescript-eslint/parser@8.6.0(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2))(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2))(eslint@9.11.0(jiti@1.21.6))(jest@29.7.0(@types/node@20.16.5))(typescript@5.6.2) eslint-plugin-prettier: specifier: 5.2.1 - version: 5.2.1(@types/eslint@9.6.1)(eslint-config-prettier@9.1.0(eslint@9.10.0(jiti@1.21.6)))(eslint@9.10.0(jiti@1.21.6))(prettier@3.3.3) + version: 5.2.1(@types/eslint@9.6.1)(eslint-config-prettier@9.1.0(eslint@9.11.0(jiti@1.21.6)))(eslint@9.11.0(jiti@1.21.6))(prettier@3.3.3) fastify: specifier: 4.28.1 version: 4.28.1 @@ -100,7 +100,7 @@ importers: version: 5.6.2 typescript-eslint: specifier: 8.6.0 - version: 8.6.0(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2) + version: 8.6.0(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2) packages/node-redis: dependencies: @@ -416,16 +416,16 @@ packages: resolution: {integrity: sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/js@9.10.0': - resolution: {integrity: sha512-fuXtbiP5GWIn8Fz+LWoOMVf/Jxm+aajZYkhi6CuEm4SxymFM+eUWzbO9qXT+L0iCkL5+KGYMCSGxo686H19S1g==} + '@eslint/js@9.11.0': + resolution: {integrity: sha512-LPkkenkDqyzTFauZLLAPhIb48fj6drrfMvRGSL9tS3AcZBSVTllemLSNyCvHNNL2t797S/6DJNSIwRwXgMO/eQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@eslint/object-schema@2.1.4': resolution: {integrity: sha512-BsWiH1yFGjXXS2yvrf5LyuoSIIbPrGUWob917o+BTKuZ7qJdxX8aJLRxs1fS9n6r7vESrq1OUqb68dANcFXuQQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/plugin-kit@0.1.0': - resolution: {integrity: sha512-autAXT203ixhqei9xt+qkYOvY8l6LAFIdT2UXc/RPNeUVfqRF1BV94GTJyVPFKT8nFM6MyVJhjLj9E8JWvf5zQ==} + '@eslint/plugin-kit@0.2.0': + resolution: {integrity: sha512-vH9PiIMMwvhCx31Af3HiGzsVNULDbyVkHXwlemn/B0TFj/00ho3y55efXrUZTfQipxoHC5u4xq6zblww1zm1Ig==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@fastify/ajv-compiler@3.6.0': @@ -1226,8 +1226,8 @@ packages: engines: {node: '>=0.10.0'} hasBin: true - electron-to-chromium@1.5.26: - resolution: {integrity: sha512-Z+OMe9M/V6Ep9n/52+b7lkvYEps26z4Yz3vjWL1V61W0q+VLF1pOHhMY17sa4roz4AWmULSI8E6SAojZA5L0YQ==} + electron-to-chromium@1.5.27: + resolution: {integrity: sha512-o37j1vZqCoEgBuWWXLHQgTN/KDKe7zwpiY5CPeq2RvUqOyJw9xnrULzZAEVQ5p4h+zjMk7hgtOoPdnLxr7m/jw==} emittery@0.13.1: resolution: {integrity: sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==} @@ -1314,8 +1314,8 @@ packages: resolution: {integrity: sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - eslint@9.10.0: - resolution: {integrity: sha512-Y4D0IgtBZfOcOUAIQTSXBKoNGfY0REGqHJG6+Q81vNippW5YlKjHFj4soMxamKK1NXHUWuBZTLdU3Km+L/pcHw==} + eslint@9.11.0: + resolution: {integrity: sha512-yVS6XODx+tMFMDFcG4+Hlh+qG7RM6cCJXtQhCKLSsr3XkLvWggHjCqjfh0XsPPnt1c56oaT6PMgW9XWQQjdHXA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} hasBin: true peerDependencies: @@ -3057,9 +3057,9 @@ snapshots: '@types/conventional-commits-parser': 5.0.0 chalk: 5.3.0 - '@eslint-community/eslint-utils@4.4.0(eslint@9.10.0(jiti@1.21.6))': + '@eslint-community/eslint-utils@4.4.0(eslint@9.11.0(jiti@1.21.6))': dependencies: - eslint: 9.10.0(jiti@1.21.6) + eslint: 9.11.0(jiti@1.21.6) eslint-visitor-keys: 3.4.3 '@eslint-community/regexpp@4.11.1': {} @@ -3086,11 +3086,11 @@ snapshots: transitivePeerDependencies: - supports-color - '@eslint/js@9.10.0': {} + '@eslint/js@9.11.0': {} '@eslint/object-schema@2.1.4': {} - '@eslint/plugin-kit@0.1.0': + '@eslint/plugin-kit@0.2.0': dependencies: levn: 0.4.1 @@ -3514,15 +3514,15 @@ snapshots: dependencies: '@types/yargs-parser': 21.0.3 - '@typescript-eslint/eslint-plugin@8.6.0(@typescript-eslint/parser@8.6.0(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2))(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2)': + '@typescript-eslint/eslint-plugin@8.6.0(@typescript-eslint/parser@8.6.0(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2))(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2)': dependencies: '@eslint-community/regexpp': 4.11.1 - '@typescript-eslint/parser': 8.6.0(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2) + '@typescript-eslint/parser': 8.6.0(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2) '@typescript-eslint/scope-manager': 8.6.0 - '@typescript-eslint/type-utils': 8.6.0(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2) - '@typescript-eslint/utils': 8.6.0(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2) + '@typescript-eslint/type-utils': 8.6.0(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2) + '@typescript-eslint/utils': 8.6.0(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2) '@typescript-eslint/visitor-keys': 8.6.0 - eslint: 9.10.0(jiti@1.21.6) + eslint: 9.11.0(jiti@1.21.6) graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 @@ -3532,14 +3532,14 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@8.6.0(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2)': + '@typescript-eslint/parser@8.6.0(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2)': dependencies: '@typescript-eslint/scope-manager': 8.6.0 '@typescript-eslint/types': 8.6.0 '@typescript-eslint/typescript-estree': 8.6.0(typescript@5.6.2) '@typescript-eslint/visitor-keys': 8.6.0 debug: 4.3.7 - eslint: 9.10.0(jiti@1.21.6) + eslint: 9.11.0(jiti@1.21.6) optionalDependencies: typescript: 5.6.2 transitivePeerDependencies: @@ -3550,10 +3550,10 @@ snapshots: '@typescript-eslint/types': 8.6.0 '@typescript-eslint/visitor-keys': 8.6.0 - '@typescript-eslint/type-utils@8.6.0(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2)': + '@typescript-eslint/type-utils@8.6.0(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2)': dependencies: '@typescript-eslint/typescript-estree': 8.6.0(typescript@5.6.2) - '@typescript-eslint/utils': 8.6.0(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2) + '@typescript-eslint/utils': 8.6.0(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2) debug: 4.3.7 ts-api-utils: 1.3.0(typescript@5.6.2) optionalDependencies: @@ -3579,13 +3579,13 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@8.6.0(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2)': + '@typescript-eslint/utils@8.6.0(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2)': dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@9.10.0(jiti@1.21.6)) + '@eslint-community/eslint-utils': 4.4.0(eslint@9.11.0(jiti@1.21.6)) '@typescript-eslint/scope-manager': 8.6.0 '@typescript-eslint/types': 8.6.0 '@typescript-eslint/typescript-estree': 8.6.0(typescript@5.6.2) - eslint: 9.10.0(jiti@1.21.6) + eslint: 9.11.0(jiti@1.21.6) transitivePeerDependencies: - supports-color - typescript @@ -3774,7 +3774,7 @@ snapshots: browserslist@4.23.3: dependencies: caniuse-lite: 1.0.30001662 - electron-to-chromium: 1.5.26 + electron-to-chromium: 1.5.27 node-releases: 2.0.18 update-browserslist-db: 1.1.0(browserslist@4.23.3) @@ -3982,7 +3982,7 @@ snapshots: dependencies: jake: 10.9.2 - electron-to-chromium@1.5.26: {} + electron-to-chromium@1.5.27: {} emittery@0.13.1: {} @@ -4008,30 +4008,30 @@ snapshots: escape-string-regexp@4.0.0: {} - eslint-config-prettier@9.1.0(eslint@9.10.0(jiti@1.21.6)): + eslint-config-prettier@9.1.0(eslint@9.11.0(jiti@1.21.6)): dependencies: - eslint: 9.10.0(jiti@1.21.6) + eslint: 9.11.0(jiti@1.21.6) - eslint-plugin-jest@28.8.3(@typescript-eslint/eslint-plugin@8.6.0(@typescript-eslint/parser@8.6.0(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2))(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2))(eslint@9.10.0(jiti@1.21.6))(jest@29.7.0(@types/node@20.16.5))(typescript@5.6.2): + eslint-plugin-jest@28.8.3(@typescript-eslint/eslint-plugin@8.6.0(@typescript-eslint/parser@8.6.0(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2))(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2))(eslint@9.11.0(jiti@1.21.6))(jest@29.7.0(@types/node@20.16.5))(typescript@5.6.2): dependencies: - '@typescript-eslint/utils': 8.6.0(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2) - eslint: 9.10.0(jiti@1.21.6) + '@typescript-eslint/utils': 8.6.0(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2) + eslint: 9.11.0(jiti@1.21.6) optionalDependencies: - '@typescript-eslint/eslint-plugin': 8.6.0(@typescript-eslint/parser@8.6.0(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2))(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2) + '@typescript-eslint/eslint-plugin': 8.6.0(@typescript-eslint/parser@8.6.0(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2))(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2) jest: 29.7.0(@types/node@20.16.5) transitivePeerDependencies: - supports-color - typescript - eslint-plugin-prettier@5.2.1(@types/eslint@9.6.1)(eslint-config-prettier@9.1.0(eslint@9.10.0(jiti@1.21.6)))(eslint@9.10.0(jiti@1.21.6))(prettier@3.3.3): + eslint-plugin-prettier@5.2.1(@types/eslint@9.6.1)(eslint-config-prettier@9.1.0(eslint@9.11.0(jiti@1.21.6)))(eslint@9.11.0(jiti@1.21.6))(prettier@3.3.3): dependencies: - eslint: 9.10.0(jiti@1.21.6) + eslint: 9.11.0(jiti@1.21.6) prettier: 3.3.3 prettier-linter-helpers: 1.0.0 synckit: 0.9.1 optionalDependencies: '@types/eslint': 9.6.1 - eslint-config-prettier: 9.1.0(eslint@9.10.0(jiti@1.21.6)) + eslint-config-prettier: 9.1.0(eslint@9.11.0(jiti@1.21.6)) eslint-scope@8.0.2: dependencies: @@ -4042,14 +4042,14 @@ snapshots: eslint-visitor-keys@4.0.0: {} - eslint@9.10.0(jiti@1.21.6): + eslint@9.11.0(jiti@1.21.6): dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@9.10.0(jiti@1.21.6)) + '@eslint-community/eslint-utils': 4.4.0(eslint@9.11.0(jiti@1.21.6)) '@eslint-community/regexpp': 4.11.1 '@eslint/config-array': 0.18.0 '@eslint/eslintrc': 3.1.0 - '@eslint/js': 9.10.0 - '@eslint/plugin-kit': 0.1.0 + '@eslint/js': 9.11.0 + '@eslint/plugin-kit': 0.2.0 '@humanwhocodes/module-importer': 1.0.1 '@humanwhocodes/retry': 0.3.0 '@nodelib/fs.walk': 1.2.8 @@ -5473,11 +5473,11 @@ snapshots: type-fest@0.21.3: {} - typescript-eslint@8.6.0(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2): + typescript-eslint@8.6.0(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2): dependencies: - '@typescript-eslint/eslint-plugin': 8.6.0(@typescript-eslint/parser@8.6.0(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2))(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2) - '@typescript-eslint/parser': 8.6.0(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2) - '@typescript-eslint/utils': 8.6.0(eslint@9.10.0(jiti@1.21.6))(typescript@5.6.2) + '@typescript-eslint/eslint-plugin': 8.6.0(@typescript-eslint/parser@8.6.0(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2))(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2) + '@typescript-eslint/parser': 8.6.0(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2) + '@typescript-eslint/utils': 8.6.0(eslint@9.11.0(jiti@1.21.6))(typescript@5.6.2) optionalDependencies: typescript: 5.6.2 transitivePeerDependencies: diff --git a/tsconfig.json b/tsconfig.json index 0c2d01d0..01158f33 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "@tsconfig/node20/tsconfig.json", - "include": ["*.js"], + "files": ["eslint.config.js"], "compilerOptions": { "noEmit": true, "allowJs": true,