A set of tslint rules for static code analysis of Angular TypeScript projects.
(If you are using ESLint check out the new angular-eslint repository.). You can run the static code analyzer over web apps, NativeScript, Ionic, etc. Note that by default all components are aligned with the style guide so you won't see any errors in the console. Codelyzer supports any template and style language by custom hooks. If you're using Sass for instance, you can allow codelyzer to analyze your styles by creating a file .codelyzer.js in the root of your project (where the node_modules directory is). In the configuration file can implement custom pre-processing and template resolution logic. Lint rules encode logic for syntactic & semantic checks of TypeScript, HTML, CSS and Angular expressions source code.
Features
- Angular CLI has support for codelyzer
- Note that by default all components are aligned with the style guide so you won't see any errors in the console
- You can use the tslint-angular preset
- You can easily use codelyzer with your custom setup
- You can create a component file in the same directory with name component.ts
- Codelyzer should work out of the box with Atom