@naturalcycles/dev-lib 15.23.0 → 15.25.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.
@@ -466,5 +466,14 @@ 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
+ ],
477
+ '@stylistic/lines-between-class-members': [2, 'always', { exceptAfterSingleLine: true }],
469
478
  },
470
479
  }
@@ -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: {
@@ -66,8 +67,6 @@ function getConfig() {
66
67
  ...globals.node,
67
68
  ...globals.jest,
68
69
  NodeJS: 'readonly',
69
- // testcafe
70
- fixture: 'readonly',
71
70
  },
72
71
  // parser: tseslint.parser,
73
72
  parserOptions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
- "version": "15.23.0",
3
+ "version": "15.25.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",