@open-xchange/linter-presets 0.10.2 → 0.10.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 +8 -0
- package/dist/eslint/config/vue.d.ts +5 -2
- package/dist/eslint/config/vue.js +6 -2
- package/dist/eslint/index.js +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## `0.10.4` – 2024-Nov-18
|
|
4
|
+
|
|
5
|
+
- fix: (ESLint) correctly configure `vue/html-indent` rule
|
|
6
|
+
|
|
7
|
+
## `0.10.3` – 2024-Nov-18
|
|
8
|
+
|
|
9
|
+
- chore: (ESLint) bump dependencies to fix ESLint v9.15 API errors
|
|
10
|
+
|
|
3
11
|
## `0.10.2` – 2024-Nov-18
|
|
4
12
|
|
|
5
13
|
- add: (ESLint) add rule `@stylistic/jsx-indent`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Linter } from "eslint";
|
|
2
|
-
import {
|
|
2
|
+
import type { LanguageConfig, StylisticConfig } from "../shared/env-utils.js";
|
|
3
3
|
/**
|
|
4
4
|
* Creates configuration objects with linter rules for Vue.js.
|
|
5
5
|
*
|
|
@@ -9,7 +9,10 @@ import { type LanguageConfig } from "../shared/env-utils.js";
|
|
|
9
9
|
* @param languageConfig
|
|
10
10
|
* Resolved language configuration options.
|
|
11
11
|
*
|
|
12
|
+
* @param stylisticConfig
|
|
13
|
+
* Resolved stylistic configuration options.
|
|
14
|
+
*
|
|
12
15
|
* @returns
|
|
13
16
|
* An array of configuration objects to be added to the flat configuration.
|
|
14
17
|
*/
|
|
15
|
-
export default function vue(languageConfig: LanguageConfig): Linter.Config[];
|
|
18
|
+
export default function vue(languageConfig: LanguageConfig, stylisticConfig: StylisticConfig): Linter.Config[];
|
|
@@ -12,10 +12,13 @@ import { fixMissingFilesOption } from "../shared/env-utils.js";
|
|
|
12
12
|
* @param languageConfig
|
|
13
13
|
* Resolved language configuration options.
|
|
14
14
|
*
|
|
15
|
+
* @param stylisticConfig
|
|
16
|
+
* Resolved stylistic configuration options.
|
|
17
|
+
*
|
|
15
18
|
* @returns
|
|
16
19
|
* An array of configuration objects to be added to the flat configuration.
|
|
17
20
|
*/
|
|
18
|
-
export default function vue(languageConfig) {
|
|
21
|
+
export default function vue(languageConfig, stylisticConfig) {
|
|
19
22
|
// add missing "files" property in configurations with rules (otherwise, plugin conflicts with "@eslint/markdown")
|
|
20
23
|
return fixMissingFilesOption([
|
|
21
24
|
// use TypeScript parser for Vue files
|
|
@@ -34,8 +37,9 @@ export default function vue(languageConfig) {
|
|
|
34
37
|
// reconfigure plugin rules
|
|
35
38
|
{
|
|
36
39
|
rules: {
|
|
37
|
-
"vue/
|
|
40
|
+
"vue/html-indent": ["error", stylisticConfig.indent.vue],
|
|
38
41
|
"vue/max-attributes-per-line": "off",
|
|
42
|
+
"vue/singleline-html-element-content-newline": "off",
|
|
39
43
|
},
|
|
40
44
|
},
|
|
41
45
|
]);
|
package/dist/eslint/index.js
CHANGED
|
@@ -86,7 +86,7 @@ export function configure(options) {
|
|
|
86
86
|
// default configuration for TypeScript files
|
|
87
87
|
...ts(),
|
|
88
88
|
// default configuration for Vue.js files
|
|
89
|
-
...vue(languageConfig),
|
|
89
|
+
...vue(languageConfig, stylisticConfig),
|
|
90
90
|
// default configuration for JSON files
|
|
91
91
|
...json(stylisticConfig),
|
|
92
92
|
// default configuration for YAML files
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-xchange/linter-presets",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
4
4
|
"description": "Configuration presets for ESLint and StyleLint",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@babel/plugin-proposal-decorators": "^7.25.9",
|
|
27
27
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
28
28
|
"@eslint/compat": "^1.2.3",
|
|
29
|
-
"@eslint/js": "^9.
|
|
29
|
+
"@eslint/js": "^9.15.0",
|
|
30
30
|
"@eslint/markdown": "^6.2.1",
|
|
31
31
|
"@stylistic/eslint-plugin": "^2.10.1",
|
|
32
32
|
"@stylistic/eslint-plugin-migrate": "^2.10.1",
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
"eslint-import-resolver-typescript": "^3.6.3",
|
|
38
38
|
"eslint-plugin-chai-expect": "^3.1.0",
|
|
39
39
|
"eslint-plugin-codeceptjs": "^1.3.0",
|
|
40
|
-
"eslint-plugin-eslint-plugin": "^6.3.
|
|
40
|
+
"eslint-plugin-eslint-plugin": "^6.3.2",
|
|
41
41
|
"eslint-plugin-import": "^2.31.0",
|
|
42
42
|
"eslint-plugin-jest": "^28.9.0",
|
|
43
|
-
"eslint-plugin-jest-dom": "^5.
|
|
43
|
+
"eslint-plugin-jest-dom": "^5.5.0",
|
|
44
44
|
"eslint-plugin-jsdoc": "^50.5.0",
|
|
45
|
-
"eslint-plugin-jsonc": "^2.18.
|
|
45
|
+
"eslint-plugin-jsonc": "^2.18.2",
|
|
46
46
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
47
47
|
"eslint-plugin-jsx-expressions": "^1.3.2",
|
|
48
48
|
"eslint-plugin-license-header": "^0.6.1",
|
|
49
|
-
"eslint-plugin-n": "^17.13.
|
|
49
|
+
"eslint-plugin-n": "^17.13.2",
|
|
50
50
|
"eslint-plugin-promise": "^7.1.0",
|
|
51
51
|
"eslint-plugin-react": "^7.37.2",
|
|
52
52
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
@@ -62,14 +62,14 @@
|
|
|
62
62
|
"stylelint-config-standard-less": "^3.0.1",
|
|
63
63
|
"stylelint-config-standard-scss": "^13.1.0",
|
|
64
64
|
"stylelint-plugin-license-header": "^1.0.3",
|
|
65
|
-
"typescript-eslint": "^8.
|
|
65
|
+
"typescript-eslint": "^8.15.0",
|
|
66
66
|
"vue-eslint-parser": "^9.4.3"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/confusing-browser-globals": "^1.0.3",
|
|
70
70
|
"@types/picomatch": "^3.0.1",
|
|
71
|
-
"@typescript-eslint/utils": "^8.
|
|
72
|
-
"eslint": "^9.
|
|
71
|
+
"@typescript-eslint/utils": "^8.15.0",
|
|
72
|
+
"eslint": "^9.15.0",
|
|
73
73
|
"jest": "^29.7.0",
|
|
74
74
|
"rimraf": "^6.0.1",
|
|
75
75
|
"stylelint": "^16.10.0",
|