@open-xchange/linter-presets 1.7.3 → 1.7.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 +10 -0
- package/dist/eslint/core/stylistic.js +8 -0
- package/dist/eslint/core/ts.js +7 -3
- package/dist/eslint/env/eslint.js +1 -4
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## `1.7.5` – 2025-Aug-07
|
|
4
|
+
|
|
5
|
+
- chore: bump dependencies
|
|
6
|
+
|
|
7
|
+
## `1.7.4` – 2025-Aug-01
|
|
8
|
+
|
|
9
|
+
- chore: bump typescript
|
|
10
|
+
- fixed: (ESLint) disable rule `@stylistic/indent` for jsx/tsx files ([eslint-stylistic#915](https://github.com/eslint-stylistic/eslint-stylistic/issues/915))
|
|
11
|
+
- fixed: (ESLint) set "tsconfigRootDir" parser option for all source files
|
|
12
|
+
|
|
3
13
|
## `1.7.3` – 2025-Jul-31
|
|
4
14
|
|
|
5
15
|
- chore: bump dependencies
|
|
@@ -117,5 +117,13 @@ export default function stylistic(stylisticConfig) {
|
|
|
117
117
|
"@stylistic/migrate/migrate-jsx": "error",
|
|
118
118
|
},
|
|
119
119
|
},
|
|
120
|
+
// disable "@stylistic/indent" rule in jsx/tsx (https://github.com/eslint-stylistic/eslint-stylistic/issues/915)
|
|
121
|
+
{
|
|
122
|
+
name: "core.stylistic.fix",
|
|
123
|
+
files: ["**/*.{jsx,tsx}"],
|
|
124
|
+
rules: {
|
|
125
|
+
"@stylistic/indent": "off",
|
|
126
|
+
},
|
|
127
|
+
},
|
|
120
128
|
];
|
|
121
129
|
}
|
package/dist/eslint/core/ts.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { configs as pluginConfigs } from "typescript-eslint";
|
|
2
|
-
import { TS_GLOB, DTS_GLOB, NO_UNUSED_VARS_OPTIONS } from "../shared/env-utils.js";
|
|
2
|
+
import { SRC_GLOB, TS_GLOB, DTS_GLOB, NO_UNUSED_VARS_OPTIONS } from "../shared/env-utils.js";
|
|
3
3
|
// functions ==================================================================
|
|
4
4
|
/**
|
|
5
5
|
* Defines standard rules for TypeScript source files.
|
|
@@ -17,8 +17,8 @@ export default function ts(rootDir) {
|
|
|
17
17
|
// plugin configuration, additional rules
|
|
18
18
|
return [
|
|
19
19
|
{
|
|
20
|
-
name: "core.ts.
|
|
21
|
-
files:
|
|
20
|
+
name: "core.ts.options",
|
|
21
|
+
files: SRC_GLOB,
|
|
22
22
|
languageOptions: {
|
|
23
23
|
parserOptions: {
|
|
24
24
|
projectService: true,
|
|
@@ -27,6 +27,10 @@ export default function ts(rootDir) {
|
|
|
27
27
|
warnOnUnsupportedTypeScriptVersion: false,
|
|
28
28
|
},
|
|
29
29
|
},
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "core.ts.recommended",
|
|
33
|
+
files: TS_GLOB,
|
|
30
34
|
// recommended rules
|
|
31
35
|
extends: [
|
|
32
36
|
...pluginConfigs.strictTypeChecked,
|
|
@@ -16,16 +16,13 @@ import { createConfig, customRules } from "../shared/env-utils.js";
|
|
|
16
16
|
export default function eslint(envOptions) {
|
|
17
17
|
return [
|
|
18
18
|
// register rule implementations and recommended rules
|
|
19
|
-
createConfig("env.eslint.recommended", envOptions, eslintPlugin.configs["
|
|
19
|
+
createConfig("env.eslint.recommended", envOptions, eslintPlugin.configs["rules-recommended"]),
|
|
20
20
|
// custom rules
|
|
21
21
|
customRules("env.eslint.rules", envOptions, {
|
|
22
|
-
"eslint-plugin/no-meta-schema-default": "error",
|
|
23
22
|
"eslint-plugin/no-property-in-node": "error",
|
|
24
23
|
"eslint-plugin/prefer-placeholders": "error",
|
|
25
24
|
"eslint-plugin/prefer-replace-text": "error",
|
|
26
|
-
"eslint-plugin/require-meta-default-options": "error",
|
|
27
25
|
"eslint-plugin/require-meta-docs-description": "error",
|
|
28
|
-
"eslint-plugin/require-meta-schema-description": "error",
|
|
29
26
|
}),
|
|
30
27
|
];
|
|
31
28
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-xchange/linter-presets",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.5",
|
|
4
4
|
"description": "Configuration presets for ESLint and StyleLint",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
"eslint-plugin-chai-expect": "^3.1.0",
|
|
51
51
|
"eslint-plugin-codeceptjs": "^1.3.0",
|
|
52
52
|
"eslint-plugin-depend": "^1.2.0",
|
|
53
|
-
"eslint-plugin-eslint-plugin": "^
|
|
53
|
+
"eslint-plugin-eslint-plugin": "^7.0.0",
|
|
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": "^52.0.
|
|
57
|
+
"eslint-plugin-jsdoc": "^52.0.4",
|
|
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",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
64
64
|
"eslint-plugin-react-hooks-static-deps": "^1.0.7",
|
|
65
65
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
66
|
-
"eslint-plugin-regexp": "^2.9.
|
|
66
|
+
"eslint-plugin-regexp": "^2.9.1",
|
|
67
67
|
"eslint-plugin-testing-library": "^7.6.3",
|
|
68
|
-
"eslint-plugin-vue": "^10.
|
|
68
|
+
"eslint-plugin-vue": "^10.4.0",
|
|
69
69
|
"eslint-plugin-yml": "^1.18.0",
|
|
70
70
|
"globals": "^16.3.0",
|
|
71
71
|
"picomatch": "^4.0.3",
|
|
@@ -75,22 +75,22 @@
|
|
|
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.39.0",
|
|
79
79
|
"vue-eslint-parser": "^10.2.0"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
83
|
-
"@types/eslint-scope": "^8.3.
|
|
84
|
-
"@types/node": "^24.
|
|
83
|
+
"@types/eslint-scope": "^8.3.2",
|
|
84
|
+
"@types/node": "^24.2.0",
|
|
85
85
|
"@types/react": "^19.1.9",
|
|
86
|
-
"@typescript-eslint/utils": "^8.
|
|
86
|
+
"@typescript-eslint/utils": "^8.39.0",
|
|
87
87
|
"eslint": "^9.32.0",
|
|
88
88
|
"jest": "^30.0.5",
|
|
89
89
|
"jiti": "^2.5.1",
|
|
90
90
|
"premove": "^4.0.0",
|
|
91
91
|
"stylelint": "^16.23.0",
|
|
92
92
|
"ts-patch": "^3.3.0",
|
|
93
|
-
"typescript": "^5.
|
|
93
|
+
"typescript": "^5.9.2",
|
|
94
94
|
"typescript-transform-paths": "^3.5.5"
|
|
95
95
|
},
|
|
96
96
|
"peerDependencies": {
|