0.0.1 • Published 3 years ago

eslint-plugin-comment-syllables v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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-dev

Next, install eslint-plugin-comment-syllables:

npm install eslint-plugin-comment-syllables --save-dev

Usage

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