Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Latest commit

 

History

History

eslint-config-loris

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

eslint-config-loris

ESLint config for Loris code style.

Installation

npm install --save-dev eslint eslint-config-loris

Usage

Include config in your .eslintrc.js file:

module.exports = {
    extends: 'loris/es5',
    root: true
};
module.exports = {
    extends: 'loris/es6',
    root: true
};

Other available configurations:

  • loris/es2017

Note that configuration doesn't specify environment. You can easily add it like this:

module.exports = {
    extends: 'loris/es6',
    root: true,
    env: {
        browser: true
    }
};