0.0.1 • Published 4 years ago
eslint-plugin-comment-syllables v0.0.1
eslint-plugin-comment-syllables
A for-fun plugin that checks if multiline comments are in a certain format (haiku, iambic pentameter, etc.)
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-comment-syllables:
npm install eslint-plugin-comment-syllables --save-devUsage
Add comment-syllables to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["comment-syllables"]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"comment-syllables/haiku-comments": 2
}
}Supported Rules
comment-syllables/haiku-comments: checks that multiline comments using/* */syntax are haikus
0.0.1
4 years ago