diff --git a/packages/config-eslint/presets/next.js b/packages/config-eslint/presets/next.js index 295b1a5..c87078a 100644 --- a/packages/config-eslint/presets/next.js +++ b/packages/config-eslint/presets/next.js @@ -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', @@ -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', diff --git a/packages/config-eslint/presets/typescript.js b/packages/config-eslint/presets/typescript.js index dd9ddac..f1d6e55 100644 --- a/packages/config-eslint/presets/typescript.js +++ b/packages/config-eslint/presets/typescript.js @@ -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', @@ -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', }, },