tslint-config-nimedev-ng
v2.0.0
Published
nimedev sharable configuration for TSLint used in Angular aplications
Downloads
4
Maintainers
Readme
tslint-config-nimedev-ng
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"
]
}
}