@fullstacksjs/eslint-config 11.1.1 → 11.1.2
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/package.json +1 -1
- package/src/modules/fp.js +0 -1
- package/src/modules/typescript.js +5 -1
- package/src/modules/vitest.js +4 -4
package/package.json
CHANGED
package/src/modules/fp.js
CHANGED
|
@@ -8,7 +8,6 @@ function fp() {
|
|
|
8
8
|
'functional/functional-parameters': 'off',
|
|
9
9
|
'functional/no-let': ['error', { allowInForLoopInit: true }],
|
|
10
10
|
'functional/no-loop-statements': 'error',
|
|
11
|
-
'functional/immutable-data': ['error', { ignoreClasses: true, ignoreImmediateMutation: true, ignoreNonConstDeclarations: true }],
|
|
12
11
|
},
|
|
13
12
|
};
|
|
14
13
|
}
|
|
@@ -199,7 +199,7 @@ function typescript(options = {}) {
|
|
|
199
199
|
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
|
|
200
200
|
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
|
|
201
201
|
'@typescript-eslint/no-unsafe-unary-minus': 'error',
|
|
202
|
-
'
|
|
202
|
+
'no-unnecessary-template-expression': 'warn',
|
|
203
203
|
'@typescript-eslint/non-nullable-type-assertion-style': 'warn',
|
|
204
204
|
'@typescript-eslint/prefer-includes': 'warn',
|
|
205
205
|
'@typescript-eslint/prefer-optional-chain': 'warn',
|
|
@@ -227,6 +227,10 @@ function typescript(options = {}) {
|
|
|
227
227
|
'@typescript-eslint/switch-exhaustiveness-check': 'error',
|
|
228
228
|
'@typescript-eslint/unbound-method': ['error', { ignoreStatic: true }],
|
|
229
229
|
|
|
230
|
+
...predicate(options.fp, {
|
|
231
|
+
'functional/immutable-data': ['error', { ignoreClasses: true, ignoreImmediateMutation: true, ignoreNonConstDeclarations: true }],
|
|
232
|
+
}),
|
|
233
|
+
|
|
230
234
|
// collisions
|
|
231
235
|
'prefer-promise-reject-errors': 'off',
|
|
232
236
|
'consistent-return': 'off',
|
package/src/modules/vitest.js
CHANGED
|
@@ -58,15 +58,15 @@ function vitest() {
|
|
|
58
58
|
'vitest/prefer-expect-resolves': 'warn',
|
|
59
59
|
'vitest/prefer-hooks-in-order': 'warn',
|
|
60
60
|
'vitest/prefer-hooks-on-top': 'warn',
|
|
61
|
-
'vitest/prefer-lowercase-title': '
|
|
61
|
+
'vitest/prefer-lowercase-title': 'off',
|
|
62
62
|
'vitest/prefer-mock-promise-shorthand': 'warn',
|
|
63
63
|
'vitest/prefer-snapshot-hint': 'warn',
|
|
64
64
|
'vitest/prefer-spy-on': 'warn',
|
|
65
|
-
'vitest/prefer-strict-equal': '
|
|
65
|
+
'vitest/prefer-strict-equal': 'off',
|
|
66
66
|
'vitest/prefer-to-be': 'warn',
|
|
67
|
-
'vitest/prefer-to-be-falsy': '
|
|
67
|
+
'vitest/prefer-to-be-falsy': 'off',
|
|
68
68
|
'vitest/prefer-to-be-object': 'warn',
|
|
69
|
-
'vitest/prefer-to-be-truthy': '
|
|
69
|
+
'vitest/prefer-to-be-truthy': 'off',
|
|
70
70
|
'vitest/prefer-to-contain': 'warn',
|
|
71
71
|
'vitest/prefer-to-have-length': 'warn',
|
|
72
72
|
'vitest/prefer-todo': 'warn',
|