werk85-tslint-rules
TypeScript icon, indicating that this package has built-in type declarations

5.1.3 • Public • Published

werk85-tslint-rules CircleCI

Organisation wide tslint rules for werk85.

Installation

npm install werk85-tslint-rules --save-dev

Usage

Base Rules

Extend your tslint.json configuration via

{
  "extends": "werk85-tslint-rules"
}

and overwrite rules suited for the current project or use on of the more specific configurations listed below.

The usable rule set includes all standard tslint-rules and the tslint-eslint-rules set.

Angular 2 Rules

For Angular 2 based project use the werk85-tslint-rules/lib/tslint-angular2 via

{
  "extends": "werk85-tslint-rules/lib/tslint-angular2",
  "rules": {
    "directive-selector": [
      true,
      "attribute",
      "w85",
      "camelCase"
    ],
    "component-selector": [
      true,
      "element",
      "w85",
      "kebab-case"
    ],
    "pipe-naming": [
      true,
      "camelCase",
      "w85"
    ],
  }
}

Note: You have to define the appropriate directive, component and pipe prefix by yourself. Please replace the "w85" string by an appropriate shortcut for your project.

This configuration uses the codelyzer tslint rules and extends the "Base Rules" described above.

/werk85-tslint-rules/

    Package Sidebar

    Install

    npm i werk85-tslint-rules

    Weekly Downloads

    0

    Version

    5.1.3

    License

    MIT

    Unpacked Size

    16.3 kB

    Total Files

    8

    Last publish

    Collaborators

    • mlegenhausen