@open-xchange/linter-presets 1.2.15 → 1.2.17

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.17` – 2025-Mar-03
4
+
5
+ - changed: (StyleLint) disable rule `scss/dollar-variable-empty-line-before`
6
+ - fixed: (StyleLint) add type package to fix [stylelint#8435](https://github.com/stylelint/stylelint/issues/8435)
7
+
8
+ ## `1.2.16` – 2025-Feb-28
9
+
10
+ - fix: (ESLint) `env.react`: typo in rule name
11
+
3
12
  ## `1.2.15` – 2025-Feb-27
4
13
 
5
14
  - chore: bump dependencies
@@ -25,7 +25,7 @@ import { concatConfigs, createConfig, customRules, convertRuleWarningsToErrors }
25
25
  */
26
26
  export default function react(envOptions) {
27
27
  // recommended configuration of the main plugin
28
- const recommendedConfig = reactPlugin.configs["recommended-type-checked"];
28
+ const recommendedConfig = reactPlugin.configs["recommended-typescript"];
29
29
  return concatConfigs(
30
30
  // configure "react" plugin for all source files (JSX and TSX)
31
31
  createConfig(envOptions, {
@@ -43,7 +43,6 @@ export default function react(envOptions) {
43
43
  "@eslint-react/no-children-prop": "error",
44
44
  "@eslint-react/no-class-component": "error",
45
45
  "@eslint-react/no-duplicate-jsx-props": "error",
46
- "@eslint-react/no-flush-sync": "error",
47
46
  "@eslint-react/no-implicit-key": "error",
48
47
  "@eslint-react/no-missing-component-display-name": "error",
49
48
  "@eslint-react/no-useless-fragment": "error",
@@ -51,6 +50,7 @@ export default function react(envOptions) {
51
50
  "@eslint-react/prefer-shorthand-boolean": "error",
52
51
  "@eslint-react/prefer-shorthand-fragment": "error",
53
52
  "@eslint-react/use-jsx-vars": "error",
53
+ "@eslint-react/dom/no-flush-sync": "error",
54
54
  "@eslint-react/dom/no-unknown-property": "error",
55
55
  "@eslint-react/hooks-extra/no-unnecessary-use-callback": "error",
56
56
  "@eslint-react/hooks-extra/no-unnecessary-use-memo": "error",
@@ -27,6 +27,7 @@ export function configure(options) {
27
27
  }
28
28
  // predefined rules for SCSS (used in ".scss" and ".vue" files)
29
29
  rules.scss = {
30
+ "scss/dollar-variable-empty-line-before": null,
30
31
  "scss/double-slash-comment-empty-line-before": null,
31
32
  ...rules.scss,
32
33
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-xchange/linter-presets",
3
- "version": "1.2.15",
3
+ "version": "1.2.17",
4
4
  "description": "Configuration presets for ESLint and StyleLint",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,6 +35,7 @@
35
35
  "@stylistic/eslint-plugin-migrate": "^4.1.0",
36
36
  "@stylistic/stylelint-config": "^2.0.0",
37
37
  "@stylistic/stylelint-plugin": "^3.1.2",
38
+ "@types/css-tree": "^2.3.10",
38
39
  "@types/picomatch": "^3.0.2",
39
40
  "@vitest/eslint-plugin": "^1.1.35",
40
41
  "confusing-browser-globals": "^1.0.11",
@@ -72,12 +73,13 @@
72
73
  "devDependencies": {
73
74
  "@types/confusing-browser-globals": "^1.0.3",
74
75
  "@types/eslint-scope": "^3.7.7",
76
+ "@types/react": "^19.0.10",
75
77
  "@typescript-eslint/utils": "^8.25.0",
76
78
  "eslint": "^9.21.0",
77
79
  "jest": "^29.7.0",
78
80
  "jiti": "^2.4.2",
79
81
  "premove": "^4.0.0",
80
- "stylelint": "^16.14.1",
82
+ "stylelint": "^16.15.0",
81
83
  "typescript": "^5.7.3"
82
84
  },
83
85
  "peerDependencies": {