@ben_12/eslint-plugin-dprint 0.7.0 → 0.8.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.
@@ -0,0 +1,167 @@
1
+ {
2
+ "type": "object",
3
+ "definitions": {
4
+ "newLineKind": {
5
+ "description": "The kind of newline to use.",
6
+ "type": "string",
7
+ "oneOf": [
8
+ {
9
+ "description": "For each file, uses the newline kind found at the end of the last line.",
10
+ "type": "string",
11
+ "enum": [
12
+ "auto"
13
+ ]
14
+ },
15
+ {
16
+ "description": "Uses carriage return, line feed.",
17
+ "type": "string",
18
+ "enum": [
19
+ "crlf"
20
+ ]
21
+ },
22
+ {
23
+ "description": "Uses line feed.",
24
+ "type": "string",
25
+ "enum": [
26
+ "lf"
27
+ ]
28
+ },
29
+ {
30
+ "description": "Uses the system standard (ex. crlf on Windows).",
31
+ "type": "string",
32
+ "enum": [
33
+ "system"
34
+ ]
35
+ }
36
+ ]
37
+ },
38
+ "textWrap": {
39
+ "description": "Text wrapping possibilities.",
40
+ "type": "string",
41
+ "oneOf": [
42
+ {
43
+ "description": "Always wraps text.",
44
+ "type": "string",
45
+ "enum": [
46
+ "always"
47
+ ]
48
+ },
49
+ {
50
+ "description": "Maintains line breaks.",
51
+ "type": "string",
52
+ "enum": [
53
+ "maintain"
54
+ ]
55
+ },
56
+ {
57
+ "description": "Never wraps text.",
58
+ "type": "string",
59
+ "enum": [
60
+ "never"
61
+ ]
62
+ }
63
+ ]
64
+ },
65
+ "emphasisKind": {
66
+ "description": "The character to use for emphasis/italics.",
67
+ "type": "string",
68
+ "oneOf": [
69
+ {
70
+ "description": "Uses asterisks (*) for emphasis.",
71
+ "type": "string",
72
+ "enum": [
73
+ "asterisks"
74
+ ]
75
+ },
76
+ {
77
+ "description": "Uses underscores (_) for emphasis.",
78
+ "type": "string",
79
+ "enum": [
80
+ "underscores"
81
+ ]
82
+ }
83
+ ]
84
+ },
85
+ "strongKind": {
86
+ "description": "The character to use for strong emphasis/bold.",
87
+ "type": "string",
88
+ "oneOf": [
89
+ {
90
+ "description": "Uses asterisks (**) for strong emphasis.",
91
+ "type": "string",
92
+ "enum": [
93
+ "asterisks"
94
+ ]
95
+ },
96
+ {
97
+ "description": "Uses underscores (__) for strong emphasis.",
98
+ "type": "string",
99
+ "enum": [
100
+ "underscores"
101
+ ]
102
+ }
103
+ ]
104
+ },
105
+ "deno": {
106
+ "description": "Top level configuration that sets the configuration to what is used in Deno.",
107
+ "type": "boolean",
108
+ "oneOf": [
109
+ {
110
+ "description": "",
111
+ "type": "boolean",
112
+ "enum": [
113
+ true
114
+ ]
115
+ },
116
+ {
117
+ "description": "",
118
+ "type": "boolean",
119
+ "enum": [
120
+ false
121
+ ]
122
+ }
123
+ ]
124
+ }
125
+ },
126
+ "properties": {
127
+ "locked": {
128
+ "description": "Whether the configuration is not allowed to be overriden or extended.",
129
+ "type": "boolean"
130
+ },
131
+ "lineWidth": {
132
+ "description": "The width of a line the printer will try to stay under. Note that the printer may exceed this width in certain cases.",
133
+ "type": "number"
134
+ },
135
+ "newLineKind": {
136
+ "$ref": "#/definitions/newLineKind"
137
+ },
138
+ "textWrap": {
139
+ "$ref": "#/definitions/textWrap"
140
+ },
141
+ "emphasisKind": {
142
+ "$ref": "#/definitions/emphasisKind"
143
+ },
144
+ "strongKind": {
145
+ "$ref": "#/definitions/strongKind"
146
+ },
147
+ "deno": {
148
+ "$ref": "#/definitions/deno"
149
+ },
150
+ "ignoreDirective": {
151
+ "description": "The text to use for an ignore directive (ex. `<!-- dprint-ignore -->`).",
152
+ "type": "string"
153
+ },
154
+ "ignoreFileDirective": {
155
+ "description": "The text to use for an ignore file directive (ex. `<!-- dprint-ignore-file -->`).",
156
+ "type": "string"
157
+ },
158
+ "ignoreStartDirective": {
159
+ "description": "The text to use for an ignore start directive (ex. `<!-- dprint-ignore-start -->`).",
160
+ "type": "string"
161
+ },
162
+ "ignoreEndDirective": {
163
+ "description": "The text to use for an ignore end directive (ex. `<!-- dprint-ignore-end -->`).",
164
+ "type": "string"
165
+ }
166
+ }
167
+ }
@@ -0,0 +1,125 @@
1
+ {
2
+ "type": "object",
3
+ "definitions": {
4
+ "useTabs": {
5
+ "description": "Whether to use tabs (true) or spaces (false).",
6
+ "type": "boolean",
7
+ "oneOf": [
8
+ {
9
+ "description": "",
10
+ "type": "boolean",
11
+ "enum": [
12
+ true
13
+ ]
14
+ },
15
+ {
16
+ "description": "",
17
+ "type": "boolean",
18
+ "enum": [
19
+ false
20
+ ]
21
+ }
22
+ ]
23
+ },
24
+ "newLineKind": {
25
+ "description": "The kind of newline to use.",
26
+ "type": "string",
27
+ "oneOf": [
28
+ {
29
+ "description": "For each file, uses the newline kind found at the end of the last line.",
30
+ "type": "string",
31
+ "enum": [
32
+ "auto"
33
+ ]
34
+ },
35
+ {
36
+ "description": "Uses carriage return, line feed.",
37
+ "type": "string",
38
+ "enum": [
39
+ "crlf"
40
+ ]
41
+ },
42
+ {
43
+ "description": "Uses line feed.",
44
+ "type": "string",
45
+ "enum": [
46
+ "lf"
47
+ ]
48
+ },
49
+ {
50
+ "description": "Uses the system standard (ex. crlf on Windows).",
51
+ "type": "string",
52
+ "enum": [
53
+ "system"
54
+ ]
55
+ }
56
+ ]
57
+ },
58
+ "comment.forceLeadingSpace": {
59
+ "description": "Whether to force a leading space in a comment.",
60
+ "type": "boolean",
61
+ "oneOf": [
62
+ {
63
+ "description": "Adds a leading space if there is none (ex. `# comment`)",
64
+ "type": "boolean",
65
+ "enum": [
66
+ true
67
+ ]
68
+ },
69
+ {
70
+ "description": "Doesn't force a space to be added and maintains what was done (ex. `#comment`)",
71
+ "type": "boolean",
72
+ "enum": [
73
+ false
74
+ ]
75
+ }
76
+ ]
77
+ },
78
+ "cargo.applyConventions": {
79
+ "description": "Whether to apply sorting to a Cargo.toml file.",
80
+ "type": "boolean",
81
+ "oneOf": [
82
+ {
83
+ "description": "",
84
+ "type": "boolean",
85
+ "enum": [
86
+ true
87
+ ]
88
+ },
89
+ {
90
+ "description": "",
91
+ "type": "boolean",
92
+ "enum": [
93
+ false
94
+ ]
95
+ }
96
+ ]
97
+ }
98
+ },
99
+ "properties": {
100
+ "locked": {
101
+ "description": "Whether the configuration is not allowed to be overriden or extended.",
102
+ "type": "boolean"
103
+ },
104
+ "lineWidth": {
105
+ "description": "The width of a line the printer will try to stay under. Note that the printer may exceed this width in certain cases.",
106
+ "type": "number"
107
+ },
108
+ "indentWidth": {
109
+ "description": "The number of characters for an indent.",
110
+ "type": "number"
111
+ },
112
+ "useTabs": {
113
+ "$ref": "#/definitions/useTabs"
114
+ },
115
+ "newLineKind": {
116
+ "$ref": "#/definitions/newLineKind"
117
+ },
118
+ "comment.forceLeadingSpace": {
119
+ "$ref": "#/definitions/comment.forceLeadingSpace"
120
+ },
121
+ "cargo.applyConventions": {
122
+ "$ref": "#/definitions/cargo.applyConventions"
123
+ }
124
+ }
125
+ }