Style guide based on eslint-config-airbnb-base
.
Almost the same, but not quite.
npm install --save-dev \
eslint-config-opengg \
eslint-plugin-import \
eslint-plugin-no-async-without-await
- 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']