eslint-plugin-comment-syllables

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i eslint-plugin-comment-syllables

Weekly Downloads

1

Version

0.0.1

License

ISC

Unpacked Size

8.71 kB

Total Files

12

Last publish

Collaborators

  • therealdmtopp