eslint-plugin-lola v0.0.5
eslint-plugin-lola
Enforce Lola javascript conventions
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-lola:
$ npm install eslint-plugin-lola --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-lola globally.
Usage
Add lola to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"lola"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"lola/no-arrow-class-properties": 2
}
}or use the statndard lola configuration
{
"extends": [
"plugin:lola/standard"
]
}Supported Rules
no-arrow-class-properties - Don't allow arrow functions on classes
no-default-export - Don't allow export default statements
required-exports - Require certain names to be exported, configurable by file/path
no-nested-ternary - eslint core no-nested-ternary rule with an option to allow chaining
Deprecated
limit-nested-ternaries - Limit depth of ternary nesting