0.0.3 • Published 8 years ago
@tsuyoshiwada/tslint-ass-wipe-yourself v0.0.3
@tsuyoshiwada/tslint-ass-wipe-yourself
EXPERIMENTAL RULE A TSLint rule. annotation comment are requires assignee name.
A rule that requires Assignee as an annotation comment such as TODO orFIXME as follows.
class Clazz {
public static foo(): void {
// TODO @tsuyoshiwada Add super features.
// ^^^^^^^^^^^^^ Should be enter an account name beginning with `@`
}
}By leaving a clear Assignee in the comment, we will eliminate the code that will become untouched.
Installation
$ npm install --save-dev @tsuyoshiwada/tslint-ass-wipe-yourselfConfiguration
Basic config
By default, Assertee is required for TODO and FIXME.
{
"extends": ["@tsuyoshiwada/ass-wipe-yourself"],
"rules": {
"ass-wipe-yourself": true
}
}Customize config
For example, to add NOTE, pass the array as follows.
{
"extends": ["@tsuyoshiwada/ass-wipe-yourself"],
"rules": {
"ass-wipe-yourself": [true, ["TODO", "FIXME", "NOTE"]]
}
}Schema
{
"type": "array",
"items": {
"type": "string"
}
}Contribute
- Fork it!
- Create your feature branch:
$ git checkout -b my-new-feature - Commit your changes:
$ git commit -am 'Add some feature' - Push to the branch:
$ git push origin my-new-feature - Submit a pull request :muscle:
CHANGELOG
See CHANGELOG.md
Development
We will develop using the following npm scripts.
yarn test
Execute TSLint --test.