@open-xchange/linter-presets 1.2.32 → 1.2.34

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,14 @@
1
1
  # Changelog
2
2
 
3
+ ## `1.2.34` – 2025-May-26
4
+
5
+ - added: (ESLint) disable rule "no-unused-private-class-members" in declaration files
6
+
7
+ ## `1.2.33` – 2025-May-22
8
+
9
+ - added: (ESLint) include new rule "no-unassigned-vars"
10
+ - chore: bump dependencies
11
+
3
12
  ## `1.2.32` – 2025-May-15
4
13
 
5
14
  - chore: bump dependencies
@@ -54,6 +54,7 @@ export default function base(languageConfig) {
54
54
  "no-promise-executor-return": ["error", { allowVoid: true }],
55
55
  "no-self-compare": "error",
56
56
  "no-template-curly-in-string": "error",
57
+ "no-unassigned-vars": "error",
57
58
  "no-unreachable-loop": "error",
58
59
  "no-unsafe-optional-chaining": ["error", { disallowArithmeticOperators: true }],
59
60
  "no-unused-private-class-members": "error",
@@ -73,6 +73,7 @@ export default function ts() {
73
73
  {
74
74
  files: DTS_GLOB,
75
75
  rules: {
76
+ "no-unused-private-class-members": "off", // allow to declare private class members
76
77
  "@typescript-eslint/consistent-type-exports": "off",
77
78
  "@typescript-eslint/consistent-type-imports": ["error", { prefer: "no-type-imports", disallowTypeAnnotations: false }],
78
79
  "@typescript-eslint/no-extraneous-class": "off",
@@ -1,5 +1,5 @@
1
1
  import type { Linter } from "eslint";
2
- import type { EnvFilesOptions, EnvBaseOptions } from "../shared/env-utils.js";
2
+ import type { EnvFilesOptions, EnvBaseOptions } from "./env-utils.js";
3
3
  /**
4
4
  * Configuration for a single banned global or import.
5
5
  */
@@ -1,4 +1,4 @@
1
- import { flatArray, concatConfigs, createConfig } from "../shared/env-utils.js";
1
+ import { flatArray, concatConfigs, createConfig } from "./env-utils.js";
2
2
  // functions ==================================================================
3
3
  /**
4
4
  * Creates a rules record for all restricted items.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-xchange/linter-presets",
3
- "version": "1.2.32",
3
+ "version": "1.2.34",
4
4
  "description": "Configuration presets for ESLint and StyleLint",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,7 +22,7 @@
22
22
  "scripts": {
23
23
  "prepack": "yarn build && yarn lint && yarn test",
24
24
  "clean": "premove dist",
25
- "build": "yarn clean && tsc --project src/tsconfig.json",
25
+ "build": "yarn clean && tspc --project src/tsconfig.json",
26
26
  "lint": "tsc && tsc --project src/tsconfig.json --noEmit && eslint .",
27
27
  "test": "cd test && eslint . && stylelint \"**/*.{css,scss}\""
28
28
  },
@@ -33,14 +33,14 @@
33
33
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
34
34
  "@eslint-react/eslint-plugin": "^1.49.0",
35
35
  "@eslint/compat": "^1.2.9",
36
- "@eslint/js": "^9.26.0",
36
+ "@eslint/js": "^9.27.0",
37
37
  "@eslint/markdown": "^6.4.0",
38
38
  "@stylistic/eslint-plugin": "^4.2.0",
39
39
  "@stylistic/eslint-plugin-migrate": "^4.2.0",
40
40
  "@stylistic/stylelint-config": "^2.0.0",
41
41
  "@stylistic/stylelint-plugin": "^3.1.2",
42
42
  "@types/picomatch": "^4.0.0",
43
- "@vitest/eslint-plugin": "^1.1.44",
43
+ "@vitest/eslint-plugin": "^1.2.0",
44
44
  "confusing-browser-globals": "^1.0.11",
45
45
  "eslint-plugin-chai-expect": "^3.1.0",
46
46
  "eslint-plugin-codeceptjs": "^1.3.0",
@@ -50,7 +50,7 @@
50
50
  "eslint-plugin-jest-dom": "^5.5.0",
51
51
  "eslint-plugin-jest-extended": "^3.0.0",
52
52
  "eslint-plugin-jsdoc": "^50.6.17",
53
- "eslint-plugin-jsonc": "^2.20.0",
53
+ "eslint-plugin-jsonc": "^2.20.1",
54
54
  "eslint-plugin-jsx-a11y": "^6.10.2",
55
55
  "eslint-plugin-license-header": "^0.8.0",
56
56
  "eslint-plugin-n": "^17.18.0",
@@ -58,7 +58,7 @@
58
58
  "eslint-plugin-react-hooks": "^5.2.0",
59
59
  "eslint-plugin-react-hooks-static-deps": "^1.0.7",
60
60
  "eslint-plugin-react-refresh": "^0.4.20",
61
- "eslint-plugin-testing-library": "^7.2.0",
61
+ "eslint-plugin-testing-library": "^7.2.1",
62
62
  "eslint-plugin-vue": "^10.1.0",
63
63
  "eslint-plugin-yml": "^1.18.0",
64
64
  "find-up": "^7.0.0",
@@ -67,7 +67,7 @@
67
67
  "postcss-html": "^1.8.0",
68
68
  "stylelint-config-standard": "^38.0.0",
69
69
  "stylelint-config-standard-less": "^3.0.1",
70
- "stylelint-config-standard-scss": "^15.0.0",
70
+ "stylelint-config-standard-scss": "^15.0.1",
71
71
  "stylelint-config-standard-vue": "^1.0.0",
72
72
  "stylelint-plugin-license-header": "^1.0.3",
73
73
  "typescript-eslint": "^8.32.1",
@@ -76,20 +76,22 @@
76
76
  "devDependencies": {
77
77
  "@types/confusing-browser-globals": "^1.0.3",
78
78
  "@types/eslint-scope": "^8.3.0",
79
- "@types/react": "^19.1.4",
79
+ "@types/react": "^19.1.5",
80
80
  "@typescript-eslint/utils": "^8.32.1",
81
- "eslint": "^9.26.0",
81
+ "eslint": "^9.27.0",
82
82
  "jest": "^29.7.0",
83
83
  "jiti": "^2.4.2",
84
84
  "premove": "^4.0.0",
85
85
  "stylelint": "^16.19.1",
86
- "typescript": "^5.8.3"
86
+ "ts-patch": "^3.3.0",
87
+ "typescript": "^5.8.3",
88
+ "typescript-transform-paths": "^3.5.5"
87
89
  },
88
90
  "peerDependencies": {
89
- "eslint": "^9.24.0",
91
+ "eslint": "^9.27.0",
90
92
  "jest": "^29.7.0",
91
93
  "postcss": "^8.4.0",
92
- "stylelint": "^16.18.0",
94
+ "stylelint": "^16.19.0",
93
95
  "typescript": "^5.7.0",
94
96
  "vitest": "^2.0.0 || ^3.0.0"
95
97
  },