Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

mgechev/tslint-angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

28 Commits

Repository files navigation

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

About

Recommended tslint configuration for Angular applications.

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 7

AltStyle によって変換されたページ (->オリジナル) /