eslint-config-sequr-backend
v1.0.9
Published
Sequr's JS ESLint config, based largely on Airbnb styleguide
Downloads
679
Readme
eslint-config-sequr-backend
Provides Sequr.io's backend microservices with a consistent ESLint ruleset.
Install
npm i --save-dev eslint-config-sequr-backend
Usage
Add the following to your .eslintrc
file.
{
"extends": "sequr-backend"
}
Modified rules
The ruleset is based largely on airbnb-base
rules with some exceptions.
{
extends: 'airbnb-base',
env: {
node: true,
es6: true,
},
rules: {
camelcase: 'off',
indent: [
'error',
'tab',
],
'no-tabs': 'off',
strict: 'off',
'no-use-before-define': 'off',
'arrow-body-style': 'off',
'no-param-reassign': 'warn',
'max-len': ['error', 80, 2, {
ignoreUrls: true,
ignoreComments: false,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
}],
}
}