@frontify/eslint-config-basic 0.19.0-next.0 → 0.19.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +7 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -59,10 +59,14 @@ module.exports = {
59
59
  rules: {
60
60
  // As we're using @typescript-eslint it's recommended to turn off
61
61
  // the standard eslint rule for unused variables and use the @typescript-eslint rule instead.
62
- // See here: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md
62
+ // See here: https://typescript-eslint.io/rules/no-unused-vars/
63
63
  'no-unused-vars': 'off',
64
64
  '@typescript-eslint/no-unused-vars': 'error',
65
65
 
66
+ // Allow overload of functions: https://typescript-eslint.io/rules/no-dupe-class-members/
67
+ 'no-dupe-class-members': 'off',
68
+ '@typescript-eslint/no-dupe-class-members': 'error',
69
+
66
70
  '@typescript-eslint/no-explicit-any': 'warn',
67
71
  'no-throw-literal': 'off',
68
72
  '@typescript-eslint/no-throw-literal': 'error',
@@ -80,7 +84,7 @@ module.exports = {
80
84
  '@typescript-eslint/require-await': 'error',
81
85
  '@typescript-eslint/restrict-plus-operands': 'error',
82
86
  '@typescript-eslint/restrict-template-expressions': 'error',
83
- '@typescript-eslint/unbound-method': 'error',
87
+ '@typescript-eslint/unbound-method': 'off',
84
88
  '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
85
89
  '@typescript-eslint/consistent-type-imports': [
86
90
  'warn',
@@ -212,6 +216,7 @@ module.exports = {
212
216
  rules: {
213
217
  'no-unused-expressions': 'off',
214
218
  'no-only-tests/no-only-tests': 'error',
219
+ '@typescript-eslint/unbound-method': 'off', // Allows to use `vi.fn()` or spy/mock in tests
215
220
  },
216
221
  },
217
222
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontify/eslint-config-basic",
3
- "version": "0.19.0-next.0",
3
+ "version": "0.19.0-next.1",
4
4
  "author": "Frontify Developers <developers@frontify.com>",
5
5
  "license": "MIT",
6
6
  "repository": {