1.0.0 • Published 10 years ago
eslint-plugin-literate v1.0.0
eslint-plugin-literate
Verifies minimum number of comments per file.
Installation
You'll first need to install ESLint:
$ npm install --save-dev eslintNext, install eslint-plugin-literate:
$ npm install --save-dev eslint-plugin-literateNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-literate globally.
Usage
Add comment to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"literate"
]
}Then configure the rules you want to use under the rules section. The second option here (10) is the minimum percentage of non-blank lines in a files that must be a comment.
{
"rules": {
"literate/comment-coverage": [ 2, 10 ]
}
}1.0.0
10 years ago