{"repo":"mgechev/codelyzer","free":true,"listed":false,"github":"https://github.com/mgechev/codelyzer","clone":"git clone https://github.com/mgechev/codelyzer.git","description":"Static analysis for Angular projects.","language":"TypeScript","stars":2467,"topics":["codelyzer","angular","tslint","linting","static-code-analysis","style-guide","angular-cli"],"license":"MIT","category":"dev-tools","readme_excerpt":"codelyzer 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. Vote for your favorite feature here. For more details about the feature request process see this document How to use? Angular CLI Angular CLI has support for codelyzer. In order to validate your code with CLI and the custom Angular specific rules just use: Note that by default all components are aligned with the style guide so you won't see any errors in the console. Angular Seed Another project which has out of the box integration with codelyzer is angular-seed. In order to run the linter you should: Note that by default all components are aligned with the style guide so you won't see any errors in the console. Custom Setup Preset You can use the tslint-angular preset. All you need is: After that create a tslint.json file with the following configuration: Run the linter with: TSLint will now complain that there are rules which require type checking. In order to fix this, use the -p config option: Custom Installation You can easily use codelyzer with your custom setup: A. Using codelyzer package in PATH Create the following tslint.json file like: To run TSLint with this setup you can use one of the following alternatives: 1. Install codelyzer globally npm install -g codelyzer 2. Run TSLint from a package.json script by adding a script like ts","default_branch":null,"files":null,"tree":[],"storefront":"/r/mgechev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mgechev/codelyzer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}