tslint-config-nimedev-ng

2.0.0 • Public • Published

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"
    ]
  }
}

Package Sidebar

Install

npm i tslint-config-nimedev-ng

Weekly Downloads

6

Version

2.0.0

License

MIT

Last publish

Collaborators

  • nimedev