chore(repo): add type-checked eslint

This commit is contained in:
Francesco Spilla 2025-02-07 10:21:58 +01:00
parent a8596c8b4d
commit 8806114929
2 changed files with 15 additions and 4 deletions

View File

@ -1,5 +1,16 @@
import baseConfig from "../../eslint.config.mjs"; import baseConfig from "../../eslint.config.mjs";
import tseslint from 'typescript-eslint';
export default [ export default tseslint.config([
...baseConfig ...baseConfig,
]; {
files: ['src/**/*.ts', 'src/**/*.tsx'],
extends: [tseslint.configs.recommendedTypeCheckedOnly],
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
]);

View File

@ -16,4 +16,4 @@ async function bootstrap() {
Logger.log(`🚀 Application is running on: http://localhost:${port}/${globalPrefix}`); Logger.log(`🚀 Application is running on: http://localhost:${port}/${globalPrefix}`);
} }
bootstrap(); void bootstrap();