:warning: TSLint has been deprecated as of 2019. Please see this issue for more details: Roadmap: TSLint → ESLint. typescript-eslint is now your best option for linting TypeScript.
TSLint is an extensible static analysis tool that checks TypeScript code for readability, maintainability, and functionality errors. It is widely supported across modern editors & build systems and can be customized with your own lint rules, configurations, and formatters.
# Install the global CLI and its peer dependency yarn global add tslint typescript # Navigate to your sources folder cd path/to/project # Generate a basic configuration file tslint --init # Lint TypeScript source globs tslint -c tslint.json 'src/**/*.ts'
Check out the full usage guide to learn more.