Based on the provided information, here are the key points about @ttsc/lint and transformers in TypeScript:
-
Overview of @ttsc/lint:
@ttsc/lintis a package that integrates ESLint into thettsc(TypeScript compiler) workflow.- It allows for linting during the compilation process, ensuring code quality checks are performed alongside type checking.
-
How it Works:
- When you run
ttsc, it first runs ESLint on your TypeScript files to perform static analysis and enforce coding standards. - If any linting issues are found, they are reported as diagnostics during the compilation process.
- This integration helps catch potential errors early in the development cycle.
- When you run
-
Transformers:
- A transformer is a feature of
ttscthat allows for modifying TypeScript code at compile time before it gets emitted to JavaScript. - Examples include libraries like
typia, which generate validation logic based on TypeScript types during compilation.
- A transformer is a feature of
-
@ttsc/lint as a Transformer:
- While most transformers modify the emitted JavaScript or add custom behavior,
@ttsc/lintacts differently by reporting
- While most transformers modify the emitted JavaScript or add custom behavior,
Read the full article at DEV Community
Want to create content about this topic? Use Nemati AI tools to generate articles, social posts, and more.

![[AINews] The Unreasonable Effectiveness of Closing the Loop](/_next/image?url=https%3A%2F%2Fmedia.nemati.ai%2Fmedia%2Fblog%2Fimages%2Farticles%2F600e22851bc7453b.webp&w=3840&q=75)



