@arcbees/tslint

1.0.5 • Public • Published

@arcbees/tslint

Arcbees’s TSlint rules and configs.

Installation

Install @arcbees/tslint, tslint, codelyzer and tslint-eslint-rules.

yarn add --dev @arcbees/tslint tslint codelyzer tslint-eslint-rules

Usage

Arcbees's preferred rules come bundled in this package. To use them in your project, create a tslint.json file at the root of your project and extend @arcbees/tslint.

{
  "extends": "@arcbees/tslint"
}

You can also create a script in your package.json and run it with yarn yarn tslint.

{
  "scripts": {
    "tslint": "tslint \"./src/**/*.{ts,tsx}\" -p tsconfig.json"
  }
}

Configuration

Some of the rules provided by this package may not suit the needs of your project. You can override them in tslint.json:

{
  "extends": "@arcbees/tslint",
  "rules": {
    "component-selector": [ true, "element", "my-prefix", "kebab-case" ],
    "directive-selector": [ true, "attribute", "myPrefix", "camelCase" ],
    "pipe-naming": [ true, "camelCase", "myPrefix" ]
  }
}

Package Sidebar

Install

npm i @arcbees/tslint

Weekly Downloads

0

Version

1.0.5

License

MIT

Last publish

Collaborators

  • meriouma
  • jni
  • christopherviel