@naturalcycles/dev-lib 13.31.0 → 13.32.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/cfg/eslint-rules.js +15 -0
- package/cfg/eslint.config.js +4 -4
- package/package.json +3 -3
package/cfg/eslint-rules.js
CHANGED
|
@@ -428,5 +428,20 @@ module.exports = {
|
|
|
428
428
|
'@typescript-eslint/prefer-optional-chain': 2,
|
|
429
429
|
'@typescript-eslint/prefer-string-starts-ends-with': 2,
|
|
430
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': 0, // gives ts compilation error
|
|
443
|
+
'@typescript-eslint/prefer-nullish-coalescing': 0, // we prefer `||` actually
|
|
444
|
+
'@typescript-eslint/dot-notation': 0, // not always desireable
|
|
445
|
+
'@typescript-eslint/consistent-indexed-object-style': 0, // Record looses the name of the key
|
|
431
446
|
},
|
|
432
447
|
}
|
package/cfg/eslint.config.js
CHANGED
|
@@ -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/
|
|
30
|
-
'plugin:@typescript-eslint/recommended',
|
|
31
|
-
// https://github.com/typescript-eslint/typescript-eslint/blob/
|
|
32
|
-
'plugin:@typescript-eslint/
|
|
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.
|
|
3
|
+
"version": "13.32.1",
|
|
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": "^
|
|
40
|
-
"@typescript-eslint/parser": "^
|
|
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",
|