Skip to content

Commit

Permalink
style: alphabetizing our ruleset
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion authored Dec 18, 2020
1 parent 854211e commit ac5f2cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ module.exports = {
plugins: ['eslint-comments', 'import', 'node', 'prettier', 'sonarjs', 'unicorn'],
rules: {
'arrow-body-style': 'off',
'no-restricted-imports': ['error', { paths: ['lodash'] }],

'eslint-comments/disable-enable-pair': ['error', { allowWholeFile: true }],
'eslint-comments/no-unused-disable': 'error',
Expand All @@ -27,6 +26,8 @@ module.exports = {
'no-constructor-return': 'error',
'no-dupe-else-if': 'error',
'no-else-return': ['error', { allowElseIf: true }],

'no-restricted-imports': ['error', { paths: ['lodash'] }],

// Disallow shadowing of any variable that isn't "err" as this is a common case that is acceptable.
'no-shadow': ['error', { allow: ['err'] }],
Expand Down

0 comments on commit ac5f2cd

Please sign in to comment.