@naturalcycles/dev-lib 20.41.2 → 20.41.4

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.
@@ -323,7 +323,7 @@ export default {
323
323
  ],
324
324
  '@typescript-eslint/array-type': 0, // ox
325
325
  '@typescript-eslint/prefer-regexp-exec': 0, // auto-fixer breaks code sometimes!
326
- '@typescript-eslint/prefer-find': 2,
326
+ '@typescript-eslint/prefer-find': 0, // ox
327
327
  'prefer-promise-reject-errors': 0,
328
328
  '@typescript-eslint/prefer-promise-reject-errors': 0, // ox
329
329
  // 'unicorn/prefer-import-meta-properties': 2,
@@ -488,7 +488,7 @@ export default {
488
488
  // }],
489
489
  '@typescript-eslint/prefer-includes': 0, // ox
490
490
  '@typescript-eslint/prefer-optional-chain': 2,
491
- '@typescript-eslint/prefer-string-starts-ends-with': 2,
491
+ '@typescript-eslint/prefer-string-starts-ends-with': 0, // ox
492
492
  '@typescript-eslint/prefer-ts-expect-error': 0, // ox
493
493
  '@typescript-eslint/explicit-member-accessibility': [
494
494
  2,
@@ -52,7 +52,7 @@ export const sharedConfig = {
52
52
  'error',
53
53
  {
54
54
  fix: {
55
- imports: 'fix',
55
+ imports: 'safe-fix',
56
56
  variables: 'suggestion',
57
57
  },
58
58
  varsIgnorePattern: '^(_$|__)',
@@ -207,7 +207,14 @@ export const sharedConfig = {
207
207
  'typescript/array-type': 2,
208
208
  'typescript/prefer-enum-initializers': 2,
209
209
  'typescript/prefer-promise-reject-errors': 2,
210
+ 'typescript/prefer-find': 2,
210
211
  'typescript/prefer-ts-expect-error': 2,
212
+ 'typescript/prefer-string-starts-ends-with': [
213
+ 2,
214
+ {
215
+ allowSingleElementEquality: 'always',
216
+ },
217
+ ],
211
218
  'typescript/require-await': 0, // not good yet
212
219
  'typescript/restrict-plus-operands': 2,
213
220
  'typescript/return-await': [2, 'error-handling-correctness-only'],
@@ -388,6 +395,7 @@ export const sharedConfig = {
388
395
  'vitest/prefer-spy-on': 2,
389
396
  'vitest/prefer-to-be': 2,
390
397
  'vitest/prefer-to-contain': 2,
398
+ 'vitest/prefer-called-exactly-once-with': 2,
391
399
  'vitest/consistent-test-filename': 2,
392
400
  'vitest/warn-todo': 0,
393
401
  'jest/consistent-test-it': [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "20.41.2",
4
+ "version": "20.41.4",
5
5
  "dependencies": {
6
6
  "prompts": "^2",
7
7
  "@naturalcycles/js-lib": "^15",