@open-xchange/linter-presets 1.7.3 → 1.7.4

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## `1.7.4` – 2025-Aug-01
4
+
5
+ - chore: bump typescript
6
+ - fixed: (ESLint) disable rule `@stylistic/indent` for jsx/tsx files ([eslint-stylistic#915](https://github.com/eslint-stylistic/eslint-stylistic/issues/915))
7
+ - fixed: (ESLint) set "tsconfigRootDir" parser option for all source files
8
+
3
9
  ## `1.7.3` – 2025-Jul-31
4
10
 
5
11
  - 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
  }
@@ -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.recommended",
21
- files: TS_GLOB,
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-xchange/linter-presets",
3
- "version": "1.7.3",
3
+ "version": "1.7.4",
4
4
  "description": "Configuration presets for ESLint and StyleLint",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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": "^52.0.1",
57
+ "eslint-plugin-jsdoc": "^52.0.2",
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",
@@ -65,7 +65,7 @@
65
65
  "eslint-plugin-react-refresh": "^0.4.20",
66
66
  "eslint-plugin-regexp": "^2.9.0",
67
67
  "eslint-plugin-testing-library": "^7.6.3",
68
- "eslint-plugin-vue": "^10.3.0",
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",
@@ -90,7 +90,7 @@
90
90
  "premove": "^4.0.0",
91
91
  "stylelint": "^16.23.0",
92
92
  "ts-patch": "^3.3.0",
93
- "typescript": "^5.8.3",
93
+ "typescript": "^5.9.2",
94
94
  "typescript-transform-paths": "^3.5.5"
95
95
  },
96
96
  "peerDependencies": {