@open-xchange/linter-presets 1.8.1 → 1.9.1
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 +9 -0
- package/dist/eslint/core/jsdoc.js +11 -12
- package/dist/utils/utils.d.ts +1 -1
- package/dist/utils/utils.js +1 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import jsdocPlugin from "eslint-plugin-jsdoc";
|
|
1
|
+
import { jsdoc as jsdocPlugin } from "eslint-plugin-jsdoc";
|
|
2
2
|
import { TS_GLOB, SRC_GLOB } from "../shared/env-utils.js";
|
|
3
3
|
// functions ==================================================================
|
|
4
4
|
/**
|
|
@@ -15,36 +15,35 @@ export default function jsdoc() {
|
|
|
15
15
|
// register rule implementations and recommended rules
|
|
16
16
|
{
|
|
17
17
|
files: SRC_GLOB,
|
|
18
|
-
...jsdocPlugin
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
// general configuration
|
|
22
|
-
{
|
|
23
|
-
name: "core.jsdoc.settings",
|
|
24
|
-
settings: {
|
|
25
|
-
jsdoc: {
|
|
18
|
+
...jsdocPlugin({
|
|
19
|
+
config: "flat/recommended-error",
|
|
20
|
+
settings: {
|
|
26
21
|
tagNamePreference: {
|
|
27
22
|
// disallowed tags for ES6 keywords `const`, `class`, `extends`
|
|
28
23
|
augments: false,
|
|
29
24
|
class: false,
|
|
30
25
|
const: false,
|
|
31
26
|
constant: false,
|
|
32
|
-
constructor: false,
|
|
27
|
+
"tag constructor": false,
|
|
33
28
|
extends: false,
|
|
34
29
|
},
|
|
35
30
|
},
|
|
36
|
-
},
|
|
31
|
+
}),
|
|
32
|
+
name: "core.jsdoc.recommended",
|
|
37
33
|
},
|
|
38
34
|
// overrides for TypeScript files
|
|
39
35
|
{
|
|
40
36
|
name: "core.jsdoc.typescript",
|
|
41
37
|
files: TS_GLOB,
|
|
42
38
|
rules: {
|
|
43
|
-
...jsdocPlugin
|
|
39
|
+
...jsdocPlugin({ config: "flat/recommended-typescript-error" }).rules,
|
|
44
40
|
"jsdoc/check-param-names": ["error", { allowExtraTrailingParamDocs: true }], // overload signatures
|
|
45
41
|
},
|
|
46
42
|
},
|
|
47
43
|
// configure plugin rules
|
|
44
|
+
// Note: These custom override rules must be located after the TS setup block above (instead of adding them
|
|
45
|
+
// to the "rules" option inside the leading "flat/recommended-error" block), otherwise they would be
|
|
46
|
+
// overwritten for all TS files.
|
|
48
47
|
{
|
|
49
48
|
name: "core.jsdoc.rules",
|
|
50
49
|
files: SRC_GLOB,
|
package/dist/utils/utils.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export type DeepOptArray<T> = T | false | null | undefined | ReadonlyArray<DeepO
|
|
|
12
12
|
* @param arrays
|
|
13
13
|
* The deeply nested arrays to be visited.
|
|
14
14
|
*
|
|
15
|
-
* @yields
|
|
15
|
+
* @yields {T}
|
|
16
16
|
* The truthy array elements.
|
|
17
17
|
*/
|
|
18
18
|
export declare function yieldDeepArrays<T>(...arrays: Array<DeepOptArray<T>>): IterableIterator<T>;
|
package/dist/utils/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-xchange/linter-presets",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "Configuration presets for ESLint and StyleLint",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,21 +30,21 @@
|
|
|
30
30
|
"test": "cd test && eslint . && stylelint \"**/*.{css,scss}\""
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@babel/core": "^7.28.
|
|
34
|
-
"@babel/eslint-parser": "^7.28.
|
|
33
|
+
"@babel/core": "^7.28.4",
|
|
34
|
+
"@babel/eslint-parser": "^7.28.4",
|
|
35
35
|
"@babel/plugin-proposal-decorators": "^7.28.0",
|
|
36
36
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
37
37
|
"@eslint-react/eslint-plugin": "^1.53.0",
|
|
38
38
|
"@eslint/compat": "^1.3.2",
|
|
39
39
|
"@eslint/config-helpers": "^0.3.1",
|
|
40
|
-
"@eslint/js": "^9.
|
|
40
|
+
"@eslint/js": "^9.35.0",
|
|
41
41
|
"@eslint/markdown": "^7.2.0",
|
|
42
42
|
"@stylistic/eslint-plugin": "^5.3.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.3.
|
|
47
|
+
"@vitest/eslint-plugin": "^1.3.9",
|
|
48
48
|
"confusing-browser-globals": "^1.0.11",
|
|
49
49
|
"empathic": "^2.0.0",
|
|
50
50
|
"eslint-plugin-chai-expect": "^3.1.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"eslint-plugin-jest": "^29.0.1",
|
|
55
55
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
56
56
|
"eslint-plugin-jest-extended": "^3.0.0",
|
|
57
|
-
"eslint-plugin-jsdoc": "^
|
|
57
|
+
"eslint-plugin-jsdoc": "^55.4.0",
|
|
58
58
|
"eslint-plugin-jsonc": "^2.20.1",
|
|
59
59
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
60
60
|
"eslint-plugin-license-header": "^0.8.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"eslint-plugin-testing-library": "^7.6.8",
|
|
68
68
|
"eslint-plugin-vue": "^10.4.0",
|
|
69
69
|
"eslint-plugin-yml": "^1.18.0",
|
|
70
|
-
"globals": "^16.
|
|
70
|
+
"globals": "^16.4.0",
|
|
71
71
|
"picomatch": "^4.0.3",
|
|
72
72
|
"postcss-html": "^1.8.0",
|
|
73
73
|
"stylelint-config-standard": "^39.0.0",
|
|
@@ -75,20 +75,20 @@
|
|
|
75
75
|
"stylelint-config-standard-scss": "^15.0.1",
|
|
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.43.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.3.
|
|
84
|
+
"@types/node": "^24.3.1",
|
|
85
85
|
"@types/react": "^19.1.12",
|
|
86
|
-
"@typescript-eslint/utils": "^8.
|
|
87
|
-
"eslint": "^9.
|
|
86
|
+
"@typescript-eslint/utils": "^8.43.0",
|
|
87
|
+
"eslint": "^9.35.0",
|
|
88
88
|
"jest": "^30.1.3",
|
|
89
89
|
"jiti": "^2.5.1",
|
|
90
90
|
"premove": "^4.0.0",
|
|
91
|
-
"stylelint": "^16.
|
|
91
|
+
"stylelint": "^16.24.0",
|
|
92
92
|
"ts-patch": "^3.3.0",
|
|
93
93
|
"typescript": "^5.9.2",
|
|
94
94
|
"typescript-transform-paths": "^3.5.5"
|