@open-xchange/linter-presets 1.2.11 → 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 +8 -0
- package/dist/eslint/env/jest.js +9 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
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
|
+
|
|
7
|
+
## `1.2.12` – 2025-Feb-20
|
|
8
|
+
|
|
9
|
+
- chore: bump dependencies
|
|
10
|
+
|
|
3
11
|
## `1.2.11` – 2025-Feb-19
|
|
4
12
|
|
|
5
13
|
- changed: (ESLint) remove `Storage` and `Transformer` from banned globals
|
package/dist/eslint/env/jest.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "1.2.13",
|
|
4
4
|
"description": "Configuration presets for ESLint and StyleLint",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"test": "cd test && eslint ."
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@babel/core": "^7.26.
|
|
25
|
+
"@babel/core": "^7.26.9",
|
|
26
26
|
"@babel/eslint-parser": "^7.26.8",
|
|
27
27
|
"@babel/plugin-proposal-decorators": "^7.25.9",
|
|
28
28
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"@eslint/compat": "^1.2.6",
|
|
31
31
|
"@eslint/js": "^9.20.0",
|
|
32
32
|
"@eslint/markdown": "^6.2.2",
|
|
33
|
-
"@stylistic/eslint-plugin": "^
|
|
34
|
-
"@stylistic/eslint-plugin-migrate": "^
|
|
33
|
+
"@stylistic/eslint-plugin": "^4.0.1",
|
|
34
|
+
"@stylistic/eslint-plugin-migrate": "^4.0.1",
|
|
35
35
|
"@stylistic/stylelint-config": "^2.0.0",
|
|
36
36
|
"@stylistic/stylelint-plugin": "^3.1.2",
|
|
37
37
|
"@types/picomatch": "^3.0.2",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"eslint-plugin-jsdoc": "^50.6.3",
|
|
48
48
|
"eslint-plugin-jsonc": "^2.19.1",
|
|
49
49
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
50
|
-
"eslint-plugin-license-header": "^0.
|
|
50
|
+
"eslint-plugin-license-header": "^0.7.0",
|
|
51
51
|
"eslint-plugin-n": "^17.15.1",
|
|
52
52
|
"eslint-plugin-promise": "^7.2.1",
|
|
53
53
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
56
56
|
"eslint-plugin-testing-library": "^7.1.1",
|
|
57
57
|
"eslint-plugin-vue": "^9.32.0",
|
|
58
|
-
"eslint-plugin-yml": "^1.
|
|
58
|
+
"eslint-plugin-yml": "^1.17.0",
|
|
59
59
|
"find-up": "^7.0.0",
|
|
60
60
|
"globals": "^15.15.0",
|
|
61
61
|
"picomatch": "^4.0.2",
|
|
@@ -65,14 +65,14 @@
|
|
|
65
65
|
"stylelint-config-standard-scss": "^14.0.0",
|
|
66
66
|
"stylelint-config-standard-vue": "^1.0.0",
|
|
67
67
|
"stylelint-plugin-license-header": "^1.0.3",
|
|
68
|
-
"typescript-eslint": "^8.24.
|
|
68
|
+
"typescript-eslint": "^8.24.1",
|
|
69
69
|
"vue-eslint-parser": "^9.4.3"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@humanwhocodes/momoa": "^3.3.6",
|
|
73
73
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
74
74
|
"@types/eslint-scope": "^3.7.7",
|
|
75
|
-
"@typescript-eslint/utils": "^8.24.
|
|
75
|
+
"@typescript-eslint/utils": "^8.24.1",
|
|
76
76
|
"better-typescript-lib": "^2.10.1",
|
|
77
77
|
"eslint": "^9.20.1",
|
|
78
78
|
"jest": "^29.7.0",
|