@open-xchange/linter-presets 1.15.4 → 1.15.5
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 +5 -0
- package/dist/eslint/core/base.js +1 -1
- package/dist/eslint/core/js.js +1 -0
- package/dist/eslint/core/ts.js +3 -1
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
package/dist/eslint/core/base.js
CHANGED
|
@@ -62,7 +62,7 @@ export default function base(languageConfig) {
|
|
|
62
62
|
"no-unassigned-vars": "error",
|
|
63
63
|
"no-unreachable-loop": "error",
|
|
64
64
|
"no-unsafe-optional-chaining": ["error", { disallowArithmeticOperators: true }],
|
|
65
|
-
"no-unused-private-class-members": "
|
|
65
|
+
"no-unused-private-class-members": "off", // separate rules for JS and TS
|
|
66
66
|
"require-atomic-updates": "error",
|
|
67
67
|
// suggestions
|
|
68
68
|
"block-scoped-var": "error",
|
package/dist/eslint/core/js.js
CHANGED
|
@@ -24,6 +24,7 @@ export default function js() {
|
|
|
24
24
|
"no-redeclare": "error",
|
|
25
25
|
"no-shadow": ["error", { ignoreOnInitialization: true }],
|
|
26
26
|
"no-throw-literal": "error",
|
|
27
|
+
"no-unused-private-class-members": "error",
|
|
27
28
|
"no-useless-constructor": "error",
|
|
28
29
|
"prefer-promise-reject-errors": "error",
|
|
29
30
|
"require-await": "error",
|
package/dist/eslint/core/ts.js
CHANGED
|
@@ -70,6 +70,7 @@ export default function ts(rootDir) {
|
|
|
70
70
|
"@typescript-eslint/no-unnecessary-type-conversion": "error",
|
|
71
71
|
"@typescript-eslint/no-unnecessary-type-parameters": "off",
|
|
72
72
|
"@typescript-eslint/no-unsafe-declaration-merging": "off",
|
|
73
|
+
"@typescript-eslint/no-unused-private-class-members": "error",
|
|
73
74
|
"@typescript-eslint/no-unused-vars": ["error", NO_UNUSED_VARS_OPTIONS],
|
|
74
75
|
"@typescript-eslint/parameter-properties": "error",
|
|
75
76
|
"@typescript-eslint/prefer-nullish-coalescing": ["error", { ignorePrimitives: true }],
|
|
@@ -87,10 +88,11 @@ export default function ts(rootDir) {
|
|
|
87
88
|
files: DTS_GLOB,
|
|
88
89
|
rules: {
|
|
89
90
|
"no-duplicate-imports": "off", // triggers for multiple "declare" blocks in a file
|
|
90
|
-
"no-unused-private-class-members": "off", // allow to declare private class members
|
|
91
91
|
"@typescript-eslint/consistent-type-exports": "off",
|
|
92
92
|
"@typescript-eslint/consistent-type-imports": ["error", { prefer: "no-type-imports", disallowTypeAnnotations: false }],
|
|
93
93
|
"@typescript-eslint/no-extraneous-class": "off",
|
|
94
|
+
"@typescript-eslint/no-unused-private-class-members": "off", // allow to declare private class members
|
|
95
|
+
"@typescript-eslint/prefer-readonly": "off", // allow to declare class members without "readonly"
|
|
94
96
|
},
|
|
95
97
|
},
|
|
96
98
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-xchange/linter-presets",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.5",
|
|
4
4
|
"description": "Configuration presets for ESLint and StyleLint",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"engines": {
|
|
12
12
|
"node": ">=20.18"
|
|
13
13
|
},
|
|
14
|
-
"packageManager": "yarn@4.
|
|
14
|
+
"packageManager": "yarn@4.11.0",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": {
|
|
17
17
|
"./eslint": "./dist/eslint/index.js",
|
|
@@ -34,27 +34,27 @@
|
|
|
34
34
|
"@babel/eslint-parser": "^7.28.5",
|
|
35
35
|
"@babel/plugin-proposal-decorators": "^7.28.0",
|
|
36
36
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
37
|
-
"@eslint-react/eslint-plugin": "^2.3.
|
|
38
|
-
"@eslint/compat": "^
|
|
39
|
-
"@eslint/config-helpers": "^0.
|
|
37
|
+
"@eslint-react/eslint-plugin": "^2.3.5",
|
|
38
|
+
"@eslint/compat": "^2.0.0",
|
|
39
|
+
"@eslint/config-helpers": "^0.5.0",
|
|
40
40
|
"@eslint/js": "^9.39.1",
|
|
41
41
|
"@eslint/markdown": "^7.5.1",
|
|
42
|
-
"@stylistic/eslint-plugin": "^5.
|
|
42
|
+
"@stylistic/eslint-plugin": "^5.6.1",
|
|
43
43
|
"@stylistic/eslint-plugin-migrate": "^4.4.1",
|
|
44
44
|
"@stylistic/stylelint-config": "^3.0.1",
|
|
45
45
|
"@stylistic/stylelint-plugin": "^4.0.0",
|
|
46
46
|
"@types/picomatch": "^4.0.2",
|
|
47
|
-
"@vitest/eslint-plugin": "^1.4.
|
|
47
|
+
"@vitest/eslint-plugin": "^1.4.3",
|
|
48
48
|
"confusing-browser-globals": "^1.0.11",
|
|
49
49
|
"empathic": "^2.0.0",
|
|
50
50
|
"eslint-plugin-chai-expect": "^3.1.0",
|
|
51
51
|
"eslint-plugin-codeceptjs": "^1.3.0",
|
|
52
|
-
"eslint-plugin-depend": "^1.
|
|
52
|
+
"eslint-plugin-depend": "^1.4.0",
|
|
53
53
|
"eslint-plugin-eslint-plugin": "^7.2.0",
|
|
54
|
-
"eslint-plugin-jest": "^29.0
|
|
54
|
+
"eslint-plugin-jest": "^29.1.0",
|
|
55
55
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
56
56
|
"eslint-plugin-jest-extended": "^3.0.1",
|
|
57
|
-
"eslint-plugin-jsdoc": "^61.
|
|
57
|
+
"eslint-plugin-jsdoc": "^61.3.0",
|
|
58
58
|
"eslint-plugin-jsonc": "^2.21.0",
|
|
59
59
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
60
60
|
"eslint-plugin-license-header": "^0.8.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
65
65
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
66
66
|
"eslint-plugin-regexp": "^2.10.0",
|
|
67
|
-
"eslint-plugin-testing-library": "^7.13.
|
|
67
|
+
"eslint-plugin-testing-library": "^7.13.4",
|
|
68
68
|
"eslint-plugin-vue": "^10.5.1",
|
|
69
69
|
"eslint-plugin-yml": "^1.19.0",
|
|
70
70
|
"globals": "^16.5.0",
|
|
@@ -75,15 +75,15 @@
|
|
|
75
75
|
"stylelint-config-standard-scss": "^16.0.0",
|
|
76
76
|
"stylelint-config-standard-vue": "^1.0.0",
|
|
77
77
|
"stylelint-plugin-license-header": "^1.0.3",
|
|
78
|
-
"typescript-eslint": "^8.
|
|
78
|
+
"typescript-eslint": "^8.47.0",
|
|
79
79
|
"vue-eslint-parser": "^10.2.0"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
83
83
|
"@types/eslint-scope": "^8.3.2",
|
|
84
|
-
"@types/node": "^24.10.
|
|
85
|
-
"@types/react": "^19.2.
|
|
86
|
-
"@typescript-eslint/utils": "^8.
|
|
84
|
+
"@types/node": "^24.10.1",
|
|
85
|
+
"@types/react": "^19.2.6",
|
|
86
|
+
"@typescript-eslint/utils": "^8.47.0",
|
|
87
87
|
"eslint": "^9.39.1",
|
|
88
88
|
"jest": "^30.2.0",
|
|
89
89
|
"jiti": "^2.6.1",
|