Skip to content
Recommended tslint configuration for Angular applications.
Branch: master
Clone or download
Latest commit b1b059e May 25, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.npmignore chore: add npmignore Jan 6, 2018
README.md docs: reflect the latest changes in readme May 19, 2019
package.json build: bump npm May 25, 2019
tslint.json fix #14 (#15) May 20, 2019

README.md

Angular TSLint Preset

A preset with TSLint rules for development of Angular applications. The preset contains both, tslint core rules, and codelyzer rules, which are going to perform Angular specific linting.

This package is based on the tslint configuration of Angular CLI and aligns with the Angular style guide.

Note: there are few more rules added on top of the Angular CLI configuration.

How to use?

npm i tslint-angular --save-dev

After that configure tslint.json to use the preset:

{
  "extends": ["tslint-angular"],
  "rules": {
    "directive-selector": [true, "attribute", "foo", "camelCase"],
    "component-selector": [true, "element", "foo", "kebab-case"]
  }
}

Notice that directive-selector and component-selector are configurable so you need to add them manually in the rules section of tslint.json.

License

MIT

You can’t perform that action at this time.