@open-xchange/linter-presets 0.11.2 → 0.11.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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## `0.11.4` – 2024-Nov-29
4
+
5
+ - chore: bump dependencies
6
+
7
+ ## `0.11.3` – 2024-Nov-25
8
+
9
+ - change: (StyleLint) disable rule `@stylistic/no-empty-first-line`
10
+
3
11
  ## `0.11.2` – 2024-Nov-22
4
12
 
5
13
  - chore: bump dependencies
@@ -25,6 +25,11 @@ export function configure(options) {
25
25
  const key = rule.split("/")[0];
26
26
  (rules[key] ?? rules.base)[rule] = value;
27
27
  }
28
+ // predefined rules for SCSS (used in ".scss" and ".vue" files)
29
+ rules.scss = {
30
+ "scss/double-slash-comment-empty-line-before": null,
31
+ ...rules.scss,
32
+ };
28
33
  return {
29
34
  // ignore certain files and folders
30
35
  ignoreFiles,
@@ -64,6 +69,7 @@ export function configure(options) {
64
69
  "@stylistic/declaration-colon-newline-after": null,
65
70
  "@stylistic/indentation": [stylistic.indent, { ignore: ["inside-parens"] }],
66
71
  "@stylistic/max-line-length": null,
72
+ "@stylistic/no-empty-first-line": null,
67
73
  "@stylistic/selector-list-comma-newline-after": null,
68
74
  "@stylistic/string-quotes": (stylistic.quotes === "off") ? null : [stylistic.quotes, { avoidEscape: true }],
69
75
  // custom rules
@@ -75,27 +81,19 @@ export function configure(options) {
75
81
  {
76
82
  files: ["**/*.scss"],
77
83
  extends: ["stylelint-config-standard-scss"],
78
- rules: {
79
- "scss/double-slash-comment-empty-line-before": null,
80
- ...rules.scss,
81
- },
84
+ rules: rules.scss,
82
85
  },
83
86
  // ".less" files
84
87
  {
85
88
  files: ["**/*.less"],
86
89
  extends: ["stylelint-config-standard-less"],
87
- rules: {
88
- ...rules.less,
89
- },
90
+ rules: rules.less,
90
91
  },
91
92
  // ".vue" files (for now, only with SCSS)
92
93
  {
93
94
  files: ["**/*.vue"],
94
- extends: ["stylelint-config-standard-less", "stylelint-config-standard-vue/scss"],
95
- rules: {
96
- "scss/double-slash-comment-empty-line-before": null,
97
- ...rules.scss,
98
- },
95
+ extends: ["stylelint-config-standard-scss", "stylelint-config-standard-vue/scss"],
96
+ rules: rules.scss,
99
97
  },
100
98
  ],
101
99
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-xchange/linter-presets",
3
- "version": "0.11.2",
3
+ "version": "0.11.4",
4
4
  "description": "Configuration presets for ESLint and StyleLint",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,7 +10,7 @@
10
10
  "engines": {
11
11
  "node": ">=20.18"
12
12
  },
13
- "packageManager": "yarn@4.5.2",
13
+ "packageManager": "yarn@4.5.3",
14
14
  "type": "module",
15
15
  "exports": "./dist/index.js",
16
16
  "scripts": {
@@ -25,7 +25,7 @@
25
25
  "@babel/eslint-parser": "^7.25.9",
26
26
  "@babel/plugin-proposal-decorators": "^7.25.9",
27
27
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
28
- "@eslint-react/eslint-plugin": "^1.17.0",
28
+ "@eslint-react/eslint-plugin": "^1.17.1",
29
29
  "@eslint/compat": "^1.2.3",
30
30
  "@eslint/js": "^9.15.0",
31
31
  "@eslint/markdown": "^6.2.1",
@@ -33,7 +33,7 @@
33
33
  "@stylistic/eslint-plugin-migrate": "^2.11.0",
34
34
  "@stylistic/stylelint-config": "^2.0.0",
35
35
  "@stylistic/stylelint-plugin": "^3.1.1",
36
- "@vitest/eslint-plugin": "^1.1.10",
36
+ "@vitest/eslint-plugin": "^1.1.12",
37
37
  "confusing-browser-globals": "^1.0.11",
38
38
  "eslint-import-resolver-typescript": "^3.6.3",
39
39
  "eslint-plugin-chai-expect": "^3.1.0",
@@ -42,16 +42,16 @@
42
42
  "eslint-plugin-import": "^2.31.0",
43
43
  "eslint-plugin-jest": "^28.9.0",
44
44
  "eslint-plugin-jest-dom": "^5.5.0",
45
- "eslint-plugin-jsdoc": "^50.5.0",
45
+ "eslint-plugin-jsdoc": "^50.6.0",
46
46
  "eslint-plugin-jsonc": "^2.18.2",
47
47
  "eslint-plugin-jsx-a11y": "^6.10.2",
48
48
  "eslint-plugin-license-header": "^0.6.1",
49
49
  "eslint-plugin-n": "^17.14.0",
50
- "eslint-plugin-promise": "^7.1.0",
50
+ "eslint-plugin-promise": "^7.2.1",
51
51
  "eslint-plugin-react-hooks": "^5.0.0",
52
52
  "eslint-plugin-react-hooks-static-deps": "^1.0.7",
53
53
  "eslint-plugin-react-refresh": "^0.4.14",
54
- "eslint-plugin-testing-library": "^6.5.0",
54
+ "eslint-plugin-testing-library": "^7.0.0",
55
55
  "eslint-plugin-vue": "^9.31.0",
56
56
  "eslint-plugin-yml": "^1.15.0",
57
57
  "find-up": "^7.0.0",
@@ -63,26 +63,26 @@
63
63
  "stylelint-config-standard-scss": "^13.1.0",
64
64
  "stylelint-config-standard-vue": "^1.0.0",
65
65
  "stylelint-plugin-license-header": "^1.0.3",
66
- "typescript-eslint": "^8.15.0",
66
+ "typescript-eslint": "^8.16.0",
67
67
  "vue-eslint-parser": "^9.4.3"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@types/confusing-browser-globals": "^1.0.3",
71
71
  "@types/picomatch": "^3.0.1",
72
- "@typescript-eslint/utils": "^8.15.0",
72
+ "@typescript-eslint/utils": "^8.16.0",
73
73
  "eslint": "^9.15.0",
74
74
  "jest": "^29.7.0",
75
75
  "rimraf": "^6.0.1",
76
- "stylelint": "^16.10.0",
77
- "typescript": "^5.6.3"
76
+ "stylelint": "^16.11.0",
77
+ "typescript": "^5.7.2"
78
78
  },
79
79
  "peerDependencies": {
80
- "eslint": "^9.10",
81
- "jest": "^29.7",
82
- "postcss": "^8.4",
83
- "stylelint": "^16.8",
84
- "typescript": "^5.5",
85
- "vitest": "^2.0"
80
+ "eslint": "^9.10.0",
81
+ "jest": "^29.7.0",
82
+ "postcss": "^8.4.0",
83
+ "stylelint": "^16.8.0",
84
+ "typescript": "^5.5.0",
85
+ "vitest": "^2.0.0"
86
86
  },
87
87
  "peerDependenciesMeta": {
88
88
  "eslint": {