@open-xchange/linter-presets 0.8.5 → 0.8.7

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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## `0.8.7` – 2024-Oct-11
4
+
5
+ - chore: bump dependencies
6
+
7
+ ## `0.8.6` – 2024-Oct-05
8
+
9
+ - chore: bump dependencies
10
+
3
11
  ## `0.8.5` – 2024-Sep-27
4
12
 
5
13
  - chore: bump dependencies
@@ -36,6 +36,7 @@ export default function jest(envOptions) {
36
36
  "jest/prefer-equality-matcher": "error",
37
37
  "jest/prefer-expect-resolves": "error",
38
38
  "jest/prefer-hooks-on-top": "error",
39
+ "jest/prefer-jest-mocked": "error",
39
40
  "jest/prefer-lowercase-title": "error",
40
41
  "jest/prefer-mock-promise-shorthand": "error",
41
42
  "jest/prefer-spy-on": "error",
@@ -34,6 +34,7 @@ export default function node(envOptions) {
34
34
  // custom rules
35
35
  customRules(envOptions, {
36
36
  "no-console": "off",
37
+ "n/no-missing-import": ["error", { ignoreTypeImport: true }],
37
38
  "n/no-unsupported-features/node-builtins": ["error", { allowExperimental: true }],
38
39
  "n/prefer-node-protocol": "error",
39
40
  }));
@@ -36,9 +36,11 @@ export default function react(envOptions) {
36
36
  },
37
37
  },
38
38
  // register rule implementations and language settings
39
+ // TODO: remove type cast after fix: https://github.com/jsx-eslint/eslint-plugin-react/issues/3838
39
40
  ...reactPlugin.configs.flat.recommended,
40
41
  rules: {
41
42
  // recommended rules
43
+ // TODO: remove type cast after fix: https://github.com/jsx-eslint/eslint-plugin-react/issues/3838
42
44
  ...reactPlugin.configs.flat.recommended.rules,
43
45
  ...reactPlugin.configs.flat["jsx-runtime"].rules,
44
46
  // custom overrides
@@ -57,6 +57,7 @@ export default function vitest(envOptions) {
57
57
  "vitest/prefer-to-be": "error",
58
58
  "vitest/prefer-to-contain": "error",
59
59
  "vitest/prefer-to-have-length": "error",
60
+ "vitest/prefer-vi-mocked": "error",
60
61
  "vitest/require-top-level-describe": "error",
61
62
  }));
62
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-xchange/linter-presets",
3
- "version": "0.8.5",
3
+ "version": "0.8.7",
4
4
  "description": "Configuration presets for ESLint and StyleLint",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,62 +21,63 @@
21
21
  "test": "cd test && eslint ."
22
22
  },
23
23
  "dependencies": {
24
- "@babel/core": "7.25.2",
25
- "@babel/eslint-parser": "7.25.1",
26
- "@babel/plugin-proposal-decorators": "7.24.7",
24
+ "@babel/core": "7.25.8",
25
+ "@babel/eslint-parser": "7.25.8",
26
+ "@babel/plugin-proposal-decorators": "7.25.7",
27
27
  "@eslint-community/eslint-plugin-eslint-comments": "4.4.0",
28
- "@eslint/compat": "1.1.1",
29
- "@eslint/js": "9.11.1",
30
- "@eslint/markdown": "6.1.0",
31
- "@stylistic/eslint-plugin": "2.8.0",
32
- "@stylistic/eslint-plugin-migrate": "2.8.0",
28
+ "@eslint/compat": "1.2.0",
29
+ "@eslint/js": "9.12.0",
30
+ "@eslint/markdown": "6.2.0",
31
+ "@stylistic/eslint-plugin": "2.9.0",
32
+ "@stylistic/eslint-plugin-migrate": "2.9.0",
33
33
  "@stylistic/stylelint-config": "2.0.0",
34
- "@stylistic/stylelint-plugin": "3.1.0",
35
- "@vitest/eslint-plugin": "1.1.4",
34
+ "@stylistic/stylelint-plugin": "3.1.1",
35
+ "@vitest/eslint-plugin": "1.1.7",
36
36
  "confusing-browser-globals": "1.0.11",
37
37
  "eslint-import-resolver-typescript": "3.6.3",
38
38
  "eslint-plugin-chai-expect": "3.1.0",
39
39
  "eslint-plugin-codeceptjs": "1.3.0",
40
40
  "eslint-plugin-eslint-plugin": "6.2.0",
41
- "eslint-plugin-import": "2.30.0",
41
+ "eslint-plugin-import": "2.31.0",
42
42
  "eslint-plugin-jest": "28.8.3",
43
43
  "eslint-plugin-jest-dom": "5.4.0",
44
- "eslint-plugin-jsdoc": "50.3.0",
44
+ "eslint-plugin-jsdoc": "50.3.1",
45
45
  "eslint-plugin-jsonc": "2.16.0",
46
46
  "eslint-plugin-jsx-a11y": "6.10.0",
47
47
  "eslint-plugin-jsx-expressions": "1.3.2",
48
48
  "eslint-plugin-license-header": "0.6.1",
49
- "eslint-plugin-n": "17.10.3",
49
+ "eslint-plugin-n": "17.11.1",
50
50
  "eslint-plugin-promise": "7.1.0",
51
- "eslint-plugin-react": "7.37.0",
51
+ "eslint-plugin-react": "7.37.1",
52
52
  "eslint-plugin-react-hooks": "4.6.2",
53
53
  "eslint-plugin-react-hooks-static-deps": "1.0.7",
54
54
  "eslint-plugin-react-refresh": "0.4.12",
55
55
  "eslint-plugin-testing-library": "6.3.0",
56
56
  "eslint-plugin-yml": "1.14.0",
57
57
  "find-up": "7.0.0",
58
- "globals": "15.9.0",
58
+ "globals": "15.11.0",
59
59
  "picomatch": "4.0.2",
60
60
  "stylelint-config-standard": "36.0.1",
61
61
  "stylelint-config-standard-less": "3.0.1",
62
62
  "stylelint-config-standard-scss": "13.1.0",
63
63
  "stylelint-plugin-license-header": "1.0.3",
64
- "typescript-eslint": "8.7.0"
64
+ "typescript-eslint": "8.8.1"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@types/confusing-browser-globals": "1.0.3",
68
68
  "@types/eslint__js": "8.42.3",
69
69
  "@types/picomatch": "3.0.1",
70
- "@typescript-eslint/utils": "8.7.0",
71
- "eslint": "9.11.1",
70
+ "@typescript-eslint/utils": "8.8.1",
71
+ "eslint": "9.12.0",
72
72
  "jest": "29.7.0",
73
73
  "rimraf": "6.0.1",
74
74
  "stylelint": "16.9.0",
75
- "typescript": "5.6.2"
75
+ "typescript": "5.6.3"
76
76
  },
77
77
  "peerDependencies": {
78
- "eslint": "^9.8",
78
+ "eslint": "^9.10",
79
79
  "jest": "^29.7",
80
+ "postcss": "^8.4",
80
81
  "stylelint": "^16.8",
81
82
  "typescript": "^5.5",
82
83
  "vitest": "^2.0"
@@ -88,6 +89,9 @@
88
89
  "jest": {
89
90
  "optional": true
90
91
  },
92
+ "postcss": {
93
+ "optional": true
94
+ },
91
95
  "stylelint": {
92
96
  "optional": true
93
97
  },