1.5.3 • Published 1 year ago

@craftworks/tslint-config-craftworks v1.5.3

Weekly downloads
214
License
MIT
Repository
github
Last release
1 year ago

TSLint Config craftworks

NPM version Downloads

A TSLint config used at craftworks optimized for Angular

Contains the ruleset of tslint:recommended, tslint-angular and tslint-config-prettier (in that order) and applies some custom rules.

Installation

npm install @craftworks/tslint-config-craftworks --save-dev

Usage

In tslint.json:

{
  "extends": "@craftworks/tslint-config-craftworks",
  "rules": {
    "directive-selector": [true, "attribute", "your-angular-prefix", "camelCase"],
    "component-selector": [true, "element", "your-angular-prefix", "kebab-case"]
  }
}

Peer Dependencies

  • codelyzer ^6.0.0
  • typescript ^3.3.0 || ^4.0.0
  • tslint ^5.16.0 || ^6.0.0

See package.json for more details

Know problems

License

MIT