2.0.0 • Published 7 years ago

tslint-config-nimedev-ng v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

tslint-config-nimedev-ng

npm

nimedev TSLint Shareable Config used in Angular aplications.

Installation

It requires tslint and codelyzer

$ npm install tslint codelizer tslint-config-nimedev-ng

Usage

Set your tslint.json file to:

{
  "extends": "tslint-config-nimedev-ng",
  "rulesDirectory": [
    "node_modules/codelyzer"
  ]
}

Extending the config

Simply add a "rules" key to your config and add your overrides there.

For example, to enable directive-selector and component-selector rules.

{
  "extends": "tslint-config-nimedev-ng",
  "rulesDirectory": [
    "node_modules/codelyzer"
  ],
  "rules": {
    "directive-selector": [
      true,
      "attribute",
      [
        "nmd"
      ],
      "camelCase"
    ],
    "component-selector": [
      true,
      "element",
      [
        "nmd"
      ],
      "kebab-case"
    ]
  }
}