@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.
- package/index.js +7 -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://
|
|
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': '
|
|
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
|
{
|