[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.
$ npm install --save-dev @tsuyoshiwada/tslint-ass-wipe-yourself
By default, Assertee is required for TODO
and FIXME
.
{
"extends": ["@tsuyoshiwada/ass-wipe-yourself"],
"rules": {
"ass-wipe-yourself": true
}
}
For example, to add NOTE
, pass the array as follows.
{
"extends": ["@tsuyoshiwada/ass-wipe-yourself"],
"rules": {
"ass-wipe-yourself": [true, ["TODO", "FIXME", "NOTE"]]
}
}
{
"type": "array",
"items": {
"type": "string"
}
}
- 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 💪
See CHANGELOG.md
We will develop using the following npm scripts.
Execute TSLint --test
.