@open-xchange/linter-presets 1.2.12 → 1.2.13

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## `1.2.13` – 2025-Feb-20
4
+
5
+ - changed: (ESLint) enable `jest/unbound-method` for TS files in `env.jest`
6
+
3
7
  ## `1.2.12` – 2025-Feb-20
4
8
 
5
9
  - chore: bump dependencies
@@ -1,5 +1,5 @@
1
1
  import jestPlugin from "eslint-plugin-jest";
2
- import { concatConfigs, createConfig, customRules } from "../shared/env-utils.js";
2
+ import { JS_GLOB, concatConfigs, createConfig, customRules } from "../shared/env-utils.js";
3
3
  import { createUnitTestPluginConfigs } from "../shared/unittest.js";
4
4
  // functions ==================================================================
5
5
  /**
@@ -44,5 +44,13 @@ export default function jest(envOptions) {
44
44
  "jest/prefer-spy-on": "error",
45
45
  "jest/prefer-todo": "error",
46
46
  "jest/require-top-level-describe": "error",
47
+ }),
48
+ // enable "jest/unbound-method" for TS files
49
+ createConfig(envOptions, {
50
+ ignores: JS_GLOB,
51
+ rules: {
52
+ "jest/unbound-method": "error",
53
+ "@typescript-eslint/unbound-method": "off", // replaced by "jest/unbound-method"
54
+ },
47
55
  }));
48
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-xchange/linter-presets",
3
- "version": "1.2.12",
3
+ "version": "1.2.13",
4
4
  "description": "Configuration presets for ESLint and StyleLint",
5
5
  "repository": {
6
6
  "type": "git",