1. tslint-angular
tslint preset for Angular
tslint-angular
Package: tslint-angular
Created by: mgechev
Last modified: Sun, 22 May 2022 08:35:31 GMT
Version: 3.0.3
License: MIT
Downloads: 52,853
Repository: https://github.com/mgechev/tslint-angular

Install

npm install tslint-angular
yarn add tslint-angular

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

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin