0.0.4 • Published 8 years ago

eslint-plugin-readable v0.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

eslint-plugin-readable

Make your JavaScript more readable.

total downloads of eslint-plugin-readable eslint-plugin-readable's License latest version of eslint-plugin-readable coverage status of github.com/YounGoat/eslint-plugin-readable dependencies of github.com/YounGoat/eslint-plugin-readable devDependencies of github.com/YounGoat/eslint-plugin-readable build status of github.com/YounGoat/eslint-plugin-readable star github.com/YounGoat/eslint-plugin-readable

Links

Rules

Notes:
1. Option name "-" means the rule's option may be a direct value instead of an object. 2. Default value "-" means that this option has no default value.

readable/const-name

Require const name to be UPPER_CASE.

Option TypeNameDefault ValueDesc
Arrayexcept-const names to be ignored

readable/function-lines

Require number of lines in a function to be no more than max.

Option TypeNameDefault ValueDesc
number-40max lines each function
numbermax40max lines each function
booleanskipBlankLinestruewhether to skip blank lines
booleanskipCommentstruewhether to skip comments

readable/function-name

Require function name to be camelCase.

Option TypeNameDefault ValueDesc
Arrayexcept-function names to be ignored

readable/loop-counter

Require counter variable used in for-statement to be single lowercase character.

readable/loop-nesting

Require depth of loop nesting to be LE a fixed number.

Option TypeNameDefault ValueDesc
number-4max depth of loops
numbermax4max depth of loops

readable/param-number

Require number of function params to be LE a fixed number.

Option TypeNameDefault ValueDesc
number-4max length of parameters
numbermax4max length of parameters

readable/property-name

Require property name to be camelCase.

Option TypeNameDefault ValueDesc
Arrayexcept-property names to be ignored

readable/space-in-brackets

Require matching spaces inside brackets couple.

readable/space-in-parens

Require matching spaces inside parenthese couple.

readable/var-name

Require property name to be camelCase.

Option TypeNameDefault ValueDesc
Arrayexcept-variable names to be ignored