eslint-config-opengg
v4.0.0
Published
OpenGG's base JS ESLint config, following our styleguide
Downloads
10
Maintainers
Readme
eslint-config-opengg
Style guide based on eslint-config-airbnb-base
.
Almost the same, but not quite.
Usage
npm install --save-dev \
eslint-config-opengg \
eslint-plugin-import \
eslint-plugin-no-async-without-await
Differences with eslint-config-airbnb-base
- Add
extras/no-async-without-await/no-async-without-await
rule - Set
errors/comma-dangle.functions
to'never'
- Set
style/func-names
to['error', 'as-needed']
- Set
style/func-style
to['error', 'expression', { allowArrowFunctions: true }]
- Set
style/no-plusplus
to['error', { allowForLoopAfterthoughts: true }]
- Remove
ForOfStatement
instyle/no-restricted-syntax
- Set
brace-style
to['error', '1tbs', { allowSingleLine: false, }]
- Set
curly
to['error', 'all']