Skip to content

lolatravel/eslint-plugin-lola

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-lola

Enforce Lola javascript conventions

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-lola:

$ npm install eslint-plugin-lola --save-dev

Note: 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published