@w5s/eslint-config 7.0.0 → 7.1.1

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,270 @@
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ import type { Linter } from 'eslint'
4
+
5
+ declare module 'eslint' {
6
+ namespace Linter {
7
+ interface RulesRecord extends RuleOptions {}
8
+ }
9
+ }
10
+
11
+ export interface RuleOptions {
12
+ /**
13
+ * enforce linebreaks after opening and before closing array brackets
14
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/array-bracket-newline.html
15
+ */
16
+ 'toml/array-bracket-newline'?: Linter.RuleEntry<TomlArrayBracketNewline>
17
+ /**
18
+ * enforce consistent spacing inside array brackets
19
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/array-bracket-spacing.html
20
+ */
21
+ 'toml/array-bracket-spacing'?: Linter.RuleEntry<TomlArrayBracketSpacing>
22
+ /**
23
+ * enforce line breaks between array elements
24
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/array-element-newline.html
25
+ */
26
+ 'toml/array-element-newline'?: Linter.RuleEntry<TomlArrayElementNewline>
27
+ /**
28
+ * enforce consistent comma style in array
29
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/comma-style.html
30
+ */
31
+ 'toml/comma-style'?: Linter.RuleEntry<TomlCommaStyle>
32
+ /**
33
+ * enforce consistent indentation
34
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/indent.html
35
+ */
36
+ 'toml/indent'?: Linter.RuleEntry<TomlIndent>
37
+ /**
38
+ * enforce linebreaks after opening and before closing braces
39
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-newline.html
40
+ */
41
+ 'toml/inline-table-curly-newline'?: Linter.RuleEntry<TomlInlineTableCurlyNewline>
42
+ /**
43
+ * enforce consistent spacing inside braces
44
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-spacing.html
45
+ */
46
+ 'toml/inline-table-curly-spacing'?: Linter.RuleEntry<TomlInlineTableCurlySpacing>
47
+ /**
48
+ * enforce placing inline table key-value pairs on separate lines
49
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-key-value-newline.html
50
+ */
51
+ 'toml/inline-table-key-value-newline'?: Linter.RuleEntry<TomlInlineTableKeyValueNewline>
52
+ /**
53
+ * enforce consistent spacing between keys and values in key/value pairs
54
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/key-spacing.html
55
+ */
56
+ 'toml/key-spacing'?: Linter.RuleEntry<TomlKeySpacing>
57
+ /**
58
+ * disallow defining pair keys out-of-order
59
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/keys-order.html
60
+ */
61
+ 'toml/keys-order'?: Linter.RuleEntry<[]>
62
+ /**
63
+ * disallow mixed data types in array
64
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/no-mixed-type-in-array.html
65
+ */
66
+ 'toml/no-mixed-type-in-array'?: Linter.RuleEntry<TomlNoMixedTypeInArray>
67
+ /**
68
+ * disallow hexadecimal, octal and binary integer
69
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/no-non-decimal-integer.html
70
+ */
71
+ 'toml/no-non-decimal-integer'?: Linter.RuleEntry<TomlNoNonDecimalInteger>
72
+ /**
73
+ * disallow spacing around infix operators
74
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/no-space-dots.html
75
+ */
76
+ 'toml/no-space-dots'?: Linter.RuleEntry<[]>
77
+ /**
78
+ * disallow number separators that to not enhance readability.
79
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/no-unreadable-number-separator.html
80
+ */
81
+ 'toml/no-unreadable-number-separator'?: Linter.RuleEntry<[]>
82
+ /**
83
+ * require or disallow padding lines between pairs
84
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/padding-line-between-pairs.html
85
+ */
86
+ 'toml/padding-line-between-pairs'?: Linter.RuleEntry<[]>
87
+ /**
88
+ * require or disallow padding lines between tables
89
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/padding-line-between-tables.html
90
+ */
91
+ 'toml/padding-line-between-tables'?: Linter.RuleEntry<[]>
92
+ /**
93
+ * disallow precision of fractional seconds greater than the specified value.
94
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/precision-of-fractional-seconds.html
95
+ */
96
+ 'toml/precision-of-fractional-seconds'?: Linter.RuleEntry<TomlPrecisionOfFractionalSeconds>
97
+ /**
98
+ * disallow precision of integer greater than the specified value.
99
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/precision-of-integer.html
100
+ */
101
+ 'toml/precision-of-integer'?: Linter.RuleEntry<TomlPrecisionOfInteger>
102
+ /**
103
+ * require or disallow quotes around keys
104
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/quoted-keys.html
105
+ */
106
+ 'toml/quoted-keys'?: Linter.RuleEntry<TomlQuotedKeys>
107
+ /**
108
+ * require spacing around equals sign
109
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/space-eq-sign.html
110
+ * @deprecated
111
+ */
112
+ 'toml/space-eq-sign'?: Linter.RuleEntry<[]>
113
+ /**
114
+ * enforce consistent spacing after the `#` in a comment
115
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/spaced-comment.html
116
+ */
117
+ 'toml/spaced-comment'?: Linter.RuleEntry<TomlSpacedComment>
118
+ /**
119
+ * enforce consistent spacing inside table brackets
120
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/table-bracket-spacing.html
121
+ */
122
+ 'toml/table-bracket-spacing'?: Linter.RuleEntry<TomlTableBracketSpacing>
123
+ /**
124
+ * disallow defining tables out-of-order
125
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/tables-order.html
126
+ */
127
+ 'toml/tables-order'?: Linter.RuleEntry<[]>
128
+ /**
129
+ * disallow parsing errors in Vue custom blocks
130
+ * @see https://ota-meshi.github.io/eslint-plugin-toml/rules/vue-custom-block/no-parsing-error.html
131
+ */
132
+ 'toml/vue-custom-block/no-parsing-error'?: Linter.RuleEntry<[]>
133
+ }
134
+
135
+ /* ======= Declarations ======= */
136
+ // ----- toml/array-bracket-newline -----
137
+ type TomlArrayBracketNewline = []|[(("always" | "never" | "consistent") | {
138
+ multiline?: boolean
139
+ minItems?: (number | null)
140
+ })]
141
+ // ----- toml/array-bracket-spacing -----
142
+ type TomlArrayBracketSpacing = []|[("always" | "never")]|[("always" | "never"), {
143
+ singleValue?: boolean
144
+ objectsInArrays?: boolean
145
+ arraysInArrays?: boolean
146
+ }]
147
+ // ----- toml/array-element-newline -----
148
+ type TomlArrayElementNewline = []|[(_TomlArrayElementNewlineBasicConfig | {
149
+ ArrayExpression?: _TomlArrayElementNewlineBasicConfig
150
+ ArrayPattern?: _TomlArrayElementNewlineBasicConfig
151
+ TOMLArray?: _TomlArrayElementNewlineBasicConfig
152
+ })]
153
+ type _TomlArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
154
+ multiline?: boolean
155
+ minItems?: (number | null)
156
+ })
157
+ // ----- toml/comma-style -----
158
+ type TomlCommaStyle = []|[("first" | "last")]|[("first" | "last"), {
159
+ exceptions?: {
160
+ [k: string]: boolean | undefined
161
+ }
162
+ }]
163
+ // ----- toml/indent -----
164
+ type TomlIndent = []|[("tab" | number)]|[("tab" | number), {
165
+ subTables?: number
166
+ keyValuePairs?: number
167
+ }]
168
+ // ----- toml/inline-table-curly-newline -----
169
+ type TomlInlineTableCurlyNewline = []|[(("always" | "never") | {
170
+ multiline?: boolean
171
+ minProperties?: number
172
+ consistent?: boolean
173
+ })]
174
+ // ----- toml/inline-table-curly-spacing -----
175
+ type TomlInlineTableCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
176
+ arraysInObjects?: boolean
177
+ objectsInObjects?: boolean
178
+ emptyObjects?: ("ignore" | "always" | "never")
179
+ }]
180
+ // ----- toml/inline-table-key-value-newline -----
181
+ type TomlInlineTableKeyValueNewline = []|[{
182
+ allowAllPropertiesOnSameLine?: boolean
183
+ }]
184
+ // ----- toml/key-spacing -----
185
+ type TomlKeySpacing = []|[({
186
+ align?: (("equal" | "value") | {
187
+ on?: ("equal" | "value")
188
+ mode?: ("strict" | "minimum")
189
+ beforeEqual?: boolean
190
+ afterEqual?: boolean
191
+ })
192
+ mode?: ("strict" | "minimum")
193
+ beforeEqual?: boolean
194
+ afterEqual?: boolean
195
+ } | {
196
+ singleLine?: {
197
+ mode?: ("strict" | "minimum")
198
+ beforeEqual?: boolean
199
+ afterEqual?: boolean
200
+ }
201
+ multiLine?: {
202
+ align?: (("equal" | "value") | {
203
+ on?: ("equal" | "value")
204
+ mode?: ("strict" | "minimum")
205
+ beforeEqual?: boolean
206
+ afterEqual?: boolean
207
+ })
208
+ mode?: ("strict" | "minimum")
209
+ beforeEqual?: boolean
210
+ afterEqual?: boolean
211
+ }
212
+ } | {
213
+ singleLine?: {
214
+ mode?: ("strict" | "minimum")
215
+ beforeEqual?: boolean
216
+ afterEqual?: boolean
217
+ }
218
+ multiLine?: {
219
+ mode?: ("strict" | "minimum")
220
+ beforeEqual?: boolean
221
+ afterEqual?: boolean
222
+ }
223
+ align?: {
224
+ on?: ("equal" | "value")
225
+ mode?: ("strict" | "minimum")
226
+ beforeEqual?: boolean
227
+ afterEqual?: boolean
228
+ }
229
+ })]
230
+ // ----- toml/no-mixed-type-in-array -----
231
+ type TomlNoMixedTypeInArray = []|[{
232
+ typeMap?: {
233
+ string?: string
234
+ boolean?: string
235
+ integer?: string
236
+ float?: string
237
+ offsetDateTime?: string
238
+ localDateTime?: string
239
+ localDate?: string
240
+ localTime?: string
241
+ array?: string
242
+ inlineTable?: string
243
+ }
244
+ }]
245
+ // ----- toml/no-non-decimal-integer -----
246
+ type TomlNoNonDecimalInteger = []|[{
247
+ allowHexadecimal?: boolean
248
+ allowOctal?: boolean
249
+ allowBinary?: boolean
250
+ }]
251
+ // ----- toml/precision-of-fractional-seconds -----
252
+ type TomlPrecisionOfFractionalSeconds = []|[{
253
+ max?: number
254
+ }]
255
+ // ----- toml/precision-of-integer -----
256
+ type TomlPrecisionOfInteger = []|[{
257
+ maxBit?: number
258
+ }]
259
+ // ----- toml/quoted-keys -----
260
+ type TomlQuotedKeys = []|[{
261
+ prefer?: ("as-needed" | "always")
262
+ numbers?: boolean
263
+ }]
264
+ // ----- toml/spaced-comment -----
265
+ type TomlSpacedComment = []|[("always" | "never")]|[("always" | "never"), {
266
+ exceptions?: string[]
267
+ markers?: string[]
268
+ }]
269
+ // ----- toml/table-bracket-spacing -----
270
+ type TomlTableBracketSpacing = []|[("always" | "never")]