ESLint config for Loris code style.
npm install --save-dev eslint eslint-config-loris
Include config in your .eslintrc.js file:
- For ECMAScript 5
module.exports = {
extends: 'loris/es5',
root: true
};
- For ECMAScript 6 (aka ECMAScript 2015)
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
}
};