@naturalcycles/dev-lib 13.30.0 → 13.32.0

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.
@@ -403,10 +403,22 @@ module.exports = {
403
403
  'no-sequences': 2,
404
404
  'no-useless-concat': 2,
405
405
  '@typescript-eslint/ban-tslint-comment': 2,
406
- // '@typescript-eslint/explicit-function-return-type': [2, {
407
- // allowTypedFunctionExpressions: true,
408
- // allowHigherOrderFunctions: true,
409
- // }],
406
+ '@typescript-eslint/explicit-function-return-type': [
407
+ 2,
408
+ {
409
+ // defaults
410
+ // allowExpressions: false,
411
+ // allowTypedFunctionExpressions: true,
412
+ // allowHigherOrderFunctions: true,
413
+ // allowDirectConstAssertionInArrowFunctions: true,
414
+ // allowConciseArrowFunctionExpressionsStartingWithVoid: false,
415
+ // allowFunctionsWithoutTypeParameters: false,
416
+ // allowedNames: [],
417
+ // allowIIFEs: false,
418
+ // overrides:
419
+ allowExpressions: true,
420
+ },
421
+ ],
410
422
  '@typescript-eslint/method-signature-style': 2,
411
423
  '@typescript-eslint/no-unnecessary-boolean-literal-compare': 2,
412
424
  // '@typescript-eslint/no-unnecessary-condition': [2, {
@@ -416,5 +428,18 @@ module.exports = {
416
428
  '@typescript-eslint/prefer-optional-chain': 2,
417
429
  '@typescript-eslint/prefer-string-starts-ends-with': 2,
418
430
  '@typescript-eslint/prefer-ts-expect-error': 2,
431
+ '@typescript-eslint/explicit-member-accessibility': [
432
+ 2,
433
+ {
434
+ accessibility: 'no-public',
435
+ },
436
+ ],
437
+ '@typescript-eslint/no-mixed-enums': 2,
438
+ '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 2,
439
+ '@typescript-eslint/no-unnecessary-qualifier': 2,
440
+ '@typescript-eslint/prefer-enum-initializers': 2,
441
+ '@typescript-eslint/prefer-literal-enum-member': 2,
442
+ '@typescript-eslint/prefer-reduce-type-parameter': 2,
443
+ '@typescript-eslint/prefer-nullish-coalescing': 0, // we prefer `||` actually
419
444
  },
420
445
  }
@@ -26,10 +26,10 @@ module.exports = {
26
26
  files: ['*.ts', '*.tsx'],
27
27
  extends: [
28
28
  'eslint:recommended',
29
- // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/src/configs/recommended.ts
30
- 'plugin:@typescript-eslint/recommended',
31
- // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/src/configs/recommended-requiring-type-checking.ts
32
- 'plugin:@typescript-eslint/recommended-requiring-type-checking',
29
+ // https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/src/configs/recommended-type-checked.ts
30
+ 'plugin:@typescript-eslint/recommended-type-checked',
31
+ // https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/src/configs/stylistic-type-checked.ts
32
+ 'plugin:@typescript-eslint/stylistic-type-checked',
33
33
  // 'plugin:jest/recommended', // add manually if needed!
34
34
  // https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/configs/recommended.js
35
35
  'plugin:unicorn/recommended',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "13.30.0",
3
+ "version": "13.32.0",
4
4
  "scripts": {
5
5
  "prepare": "husky install",
6
6
  "tsn-debug": "tsn testScript.ts",
@@ -36,8 +36,8 @@
36
36
  "@types/jest": "^29.0.0",
37
37
  "@types/node": "^20.1.0",
38
38
  "@types/yargs": "^16.0.0",
39
- "@typescript-eslint/eslint-plugin": "^5.0.0",
40
- "@typescript-eslint/parser": "^5.0.0",
39
+ "@typescript-eslint/eslint-plugin": "^6.0.0",
40
+ "@typescript-eslint/parser": "^6.0.0",
41
41
  "eslint": "^8.0.0",
42
42
  "eslint-config-prettier": "^8.3.0",
43
43
  "eslint-plugin-import": "^2.22.1",