The setup uses TSLint and codelyzer for code-style checks and prettier for code-formatting. The ruleset includes the recommended Angular code-style rules and additional rules.
Note: The following set of rules depend on:
- TSLint ^v5.0.0
- codelyzer ^v4.5.0
npm install git+https://github.com/dev-marlon/angular-tslint-config.git --save-devIn tslint.json:
{
"extends": "angular-tslint-config"
}ng lintng lint --fixEnable TSLint integration in PhpStorm to show errors in your code:
Languages & Frameworks > TypeScript > TSLint
Use alt + Enter shortcut on marked lines to autofix the errors.