@ben_12/eslint-plugin-dprint 1.4.0 → 1.6.0
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.
|
@@ -3,6 +3,40 @@
|
|
|
3
3
|
"description": "Configuration for dprint-plugin-malva.",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"definitions": {
|
|
6
|
+
"quotes": {
|
|
7
|
+
"description": "Control the quotes of strings.",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"oneOf": [
|
|
10
|
+
{
|
|
11
|
+
"description": "Always use double quotes. Double quotes in strings will be escaped.",
|
|
12
|
+
"type": "string",
|
|
13
|
+
"enum": [
|
|
14
|
+
"alwaysDouble"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"description": "Always use single quotes. Single quotes in strings will be escaped.",
|
|
19
|
+
"type": "string",
|
|
20
|
+
"enum": [
|
|
21
|
+
"alwaysSingle"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"description": "Use double quotes as possible. However if there're double quotes in strings, quotes will be kept as-is.",
|
|
26
|
+
"type": "string",
|
|
27
|
+
"enum": [
|
|
28
|
+
"preferDouble"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"description": "Use single quotes as possible. However if there're single quotes in strings, quotes will be kept as-is.",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"enum": [
|
|
35
|
+
"preferSingle"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
6
40
|
"preferSingleLine": {
|
|
7
41
|
"description": "Control whether items should be placed on single line as possible, even they're originally on multiple lines.",
|
|
8
42
|
"type": "boolean"
|
|
@@ -89,38 +123,10 @@
|
|
|
89
123
|
]
|
|
90
124
|
},
|
|
91
125
|
"quotes": {
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
"description": "Always use double quotes. Double quotes in strings will be escaped.",
|
|
97
|
-
"type": "string",
|
|
98
|
-
"enum": [
|
|
99
|
-
"alwaysDouble"
|
|
100
|
-
]
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"description": "Always use single quotes. Single quotes in strings will be escaped.",
|
|
104
|
-
"type": "string",
|
|
105
|
-
"enum": [
|
|
106
|
-
"alwaysSingle"
|
|
107
|
-
]
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"description": "Use double quotes as possible. However if there're double quotes in strings, quotes will be kept as-is.",
|
|
111
|
-
"type": "string",
|
|
112
|
-
"enum": [
|
|
113
|
-
"preferDouble"
|
|
114
|
-
]
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"description": "Use single quotes as possible. However if there're single quotes in strings, quotes will be kept as-is.",
|
|
118
|
-
"type": "string",
|
|
119
|
-
"enum": [
|
|
120
|
-
"preferSingle"
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
]
|
|
126
|
+
"$ref": "#/definitions/quotes"
|
|
127
|
+
},
|
|
128
|
+
"attrSelector.quotes": {
|
|
129
|
+
"$ref": "#/definitions/quotes"
|
|
124
130
|
},
|
|
125
131
|
"operatorLinebreak": {
|
|
126
132
|
"description": "Control whether line break should come before or after operators.",
|
|
@@ -459,6 +459,33 @@
|
|
|
459
459
|
"null"
|
|
460
460
|
]
|
|
461
461
|
},
|
|
462
|
+
"vueComponentCase": {
|
|
463
|
+
"description": "Control the component naming style in template.",
|
|
464
|
+
"type": "string",
|
|
465
|
+
"oneOf": [
|
|
466
|
+
{
|
|
467
|
+
"description": "Component names will not be changed.",
|
|
468
|
+
"type": "string",
|
|
469
|
+
"enum": [
|
|
470
|
+
"ignore"
|
|
471
|
+
]
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"description": "Component names will be converted to PascalCase.",
|
|
475
|
+
"type": "string",
|
|
476
|
+
"enum": [
|
|
477
|
+
"pascalCase"
|
|
478
|
+
]
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"description": "Component names will be converted to kebab-case.",
|
|
482
|
+
"type": "string",
|
|
483
|
+
"enum": [
|
|
484
|
+
"kebabCase"
|
|
485
|
+
]
|
|
486
|
+
}
|
|
487
|
+
]
|
|
488
|
+
},
|
|
462
489
|
"strictSvelteAttr": {
|
|
463
490
|
"description": "Control whether Svelte attribute value should be in strict mode or not.",
|
|
464
491
|
"type": "boolean"
|
|
@@ -484,6 +511,10 @@
|
|
|
484
511
|
"null"
|
|
485
512
|
]
|
|
486
513
|
},
|
|
514
|
+
"angularNextControlFlowSameLine": {
|
|
515
|
+
"description": "Control whether the next Angular control flow code should be on the same line with previous `}` or not.",
|
|
516
|
+
"type": "boolean"
|
|
517
|
+
},
|
|
487
518
|
"scriptFormatter": {
|
|
488
519
|
"description": "Tell markup_fmt what script formatter you are using.",
|
|
489
520
|
"type": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ben_12/eslint-plugin-dprint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "An ESLint plugin that fixes code with dprint",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"peerDependencies": {
|
|
14
14
|
"@dprint/dockerfile": "^0.3.3",
|
|
15
15
|
"@dprint/json": "^0.20.0",
|
|
16
|
-
"@dprint/markdown": "^0.
|
|
16
|
+
"@dprint/markdown": "^0.19.0",
|
|
17
17
|
"@dprint/toml": "^0.7.0",
|
|
18
|
-
"@dprint/typescript": "^0.95.
|
|
18
|
+
"@dprint/typescript": "^0.95.8",
|
|
19
19
|
"dprint-plugin-graphql": "^0.2.0",
|
|
20
|
-
"dprint-plugin-malva": "^0.
|
|
21
|
-
"dprint-plugin-markup": "^0.
|
|
22
|
-
"dprint-plugin-yaml": "^0.5.
|
|
20
|
+
"dprint-plugin-malva": "^0.13.1",
|
|
21
|
+
"dprint-plugin-markup": "^0.23.1",
|
|
22
|
+
"dprint-plugin-yaml": "^0.5.1",
|
|
23
23
|
"eslint": ">=7.0.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependenciesMeta": {
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"@ben_12/eslint-simple-parser": "^0.1.0",
|
|
63
63
|
"@dprint/dockerfile": "^0.3.3",
|
|
64
64
|
"@dprint/json": "^0.20.0",
|
|
65
|
-
"@dprint/markdown": "^0.
|
|
65
|
+
"@dprint/markdown": "^0.19.0",
|
|
66
66
|
"@dprint/toml": "^0.7.0",
|
|
67
|
-
"@dprint/typescript": "^0.95.
|
|
67
|
+
"@dprint/typescript": "^0.95.8",
|
|
68
68
|
"@types/debug": "^4.1.5",
|
|
69
69
|
"@types/diff": "^7.0.0",
|
|
70
70
|
"@types/eslint": "^9.0.0",
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
73
73
|
"axios": "^1.7.9",
|
|
74
74
|
"dprint-plugin-graphql": "^0.2.0",
|
|
75
|
-
"dprint-plugin-malva": "^0.
|
|
76
|
-
"dprint-plugin-markup": "^0.
|
|
77
|
-
"dprint-plugin-yaml": "^0.5.
|
|
75
|
+
"dprint-plugin-malva": "^0.13.1",
|
|
76
|
+
"dprint-plugin-markup": "^0.23.1",
|
|
77
|
+
"dprint-plugin-yaml": "^0.5.1",
|
|
78
78
|
"eslint": "^9.0.0",
|
|
79
79
|
"mocha": "^11.0.0",
|
|
80
80
|
"nyc": "^17.0.0",
|