Skip to content

Commit

Permalink
Enable more.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles Johnson committed Sep 16, 2019
1 parent 76431c0 commit c0390f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/config-eslint/presets/next.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ module.exports = {

// UNICORN
'unicorn/catch-error-name': 'error',
'unicorn/consistent-function-scoping': 'warn',
'unicorn/custom-error-definition': 'error',
'unicorn/error-message': 'error',
'unicorn/escape-case': 'error',
Expand All @@ -145,6 +146,7 @@ module.exports = {
'unicorn/no-zero-fractions': 'error',
'unicorn/number-literal-case': 'error',
'unicorn/prefer-add-event-listener': 'error',
'unicorn/prefer-dataset': 'warn',
'unicorn/prefer-event-key': 'error',
'unicorn/prefer-exponentiation-operator': 'error',
'unicorn/prefer-flat-map': 'error',
Expand Down
3 changes: 1 addition & 2 deletions packages/config-eslint/presets/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ module.exports = {
'@typescript-eslint/member-delimiter-style': 'error',
'@typescript-eslint/member-ordering': 'off', // Prefer react/sort-comp
'@typescript-eslint/no-array-constructor': 'error',
'@typescript-eslint/no-empty-function': 'warn',
'@typescript-eslint/no-empty-function': 'off', // Default props are usually empty
'@typescript-eslint/no-empty-interface': 'error',
'@typescript-eslint/no-explicit-any': [
'warn',
Expand All @@ -107,7 +107,6 @@ module.exports = {
'@typescript-eslint/require-await': 'error',
'@typescript-eslint/triple-slash-reference': 'error',
'@typescript-eslint/type-annotation-spacing': 'error',
'@typescript-eslint/unbound-method': 'error',
'@typescript-eslint/unified-signatures': 'warn',
},
},
Expand Down

0 comments on commit c0390f0

Please sign in to comment.