@naturalcycles/dev-lib 15.23.0 → 15.24.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.
- package/cfg/eslint-rules.js +8 -0
- package/cfg/eslint.config.js +1 -0
- package/package.json +2 -1
package/cfg/eslint-rules.js
CHANGED
|
@@ -466,5 +466,13 @@ module.exports = {
|
|
|
466
466
|
'@typescript-eslint/dot-notation': 0, // not always desireable
|
|
467
467
|
'@typescript-eslint/consistent-indexed-object-style': 0, // Record looses the name of the key
|
|
468
468
|
'@typescript-eslint/no-unsafe-enum-comparison': 0, // not practically helpful
|
|
469
|
+
// stylistic
|
|
470
|
+
'@stylistic/padding-line-between-statements': [
|
|
471
|
+
2,
|
|
472
|
+
{ blankLine: 'always', prev: 'function', next: '*' },
|
|
473
|
+
{ blankLine: 'always', prev: '*', next: 'function' },
|
|
474
|
+
{ blankLine: 'always', prev: 'class', next: '*' },
|
|
475
|
+
{ blankLine: 'always', prev: '*', next: 'class' },
|
|
476
|
+
],
|
|
469
477
|
},
|
|
470
478
|
}
|
package/cfg/eslint.config.js
CHANGED
|
@@ -57,6 +57,7 @@ function getConfig() {
|
|
|
57
57
|
// 'unused-imports': require('eslint-plugin-unused-imports'), // disabled in favor of biome rules
|
|
58
58
|
'simple-import-sort': require('eslint-plugin-simple-import-sort'),
|
|
59
59
|
jsdoc: require('eslint-plugin-jsdoc'),
|
|
60
|
+
'@stylistic': require('@stylistic/eslint-plugin'),
|
|
60
61
|
...(hasJest ? { jest: require('eslint-plugin-jest') } : {}),
|
|
61
62
|
},
|
|
62
63
|
languageOptions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalcycles/dev-lib",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.24.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"prepare": "husky",
|
|
6
6
|
"tsn-debug": "tsn testScript.ts",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"@naturalcycles/cli": "^1.0.0",
|
|
26
26
|
"@naturalcycles/js-lib": "^14.0.0",
|
|
27
27
|
"@naturalcycles/nodejs-lib": "^13.0.1",
|
|
28
|
+
"@stylistic/eslint-plugin": "^2.9.0",
|
|
28
29
|
"@types/jest": "^29.0.0",
|
|
29
30
|
"@types/node": "^22.0.0",
|
|
30
31
|
"@types/yargs": "^16.0.0",
|