@kazupon/eslint-config 0.18.0 → 0.19.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.
- package/dist/index.cjs +97 -216
- package/dist/index.d.cts +14216 -3
- package/dist/index.d.ts +14216 -3
- package/dist/index.js +70 -89
- package/package.json +15 -15
- package/dist/config.d.cts +0 -9
- package/dist/config.d.ts +0 -9
- package/dist/configs/comments.d.cts +0 -15
- package/dist/configs/comments.d.ts +0 -15
- package/dist/configs/imports.d.cts +0 -21
- package/dist/configs/imports.d.ts +0 -21
- package/dist/configs/index.d.cts +0 -17
- package/dist/configs/index.d.ts +0 -17
- package/dist/configs/javascript.d.cts +0 -15
- package/dist/configs/javascript.d.ts +0 -15
- package/dist/configs/jsdoc.d.cts +0 -27
- package/dist/configs/jsdoc.d.ts +0 -27
- package/dist/configs/jsonc.d.cts +0 -39
- package/dist/configs/jsonc.d.ts +0 -39
- package/dist/configs/markdown.d.cts +0 -28
- package/dist/configs/markdown.d.ts +0 -28
- package/dist/configs/prettier.d.cts +0 -15
- package/dist/configs/prettier.d.ts +0 -15
- package/dist/configs/promise.d.cts +0 -15
- package/dist/configs/promise.d.ts +0 -15
- package/dist/configs/react.d.cts +0 -26
- package/dist/configs/react.d.ts +0 -26
- package/dist/configs/regexp.d.cts +0 -15
- package/dist/configs/regexp.d.ts +0 -15
- package/dist/configs/svelte.d.cts +0 -21
- package/dist/configs/svelte.d.ts +0 -21
- package/dist/configs/toml.d.cts +0 -15
- package/dist/configs/toml.d.ts +0 -15
- package/dist/configs/typescript.d.cts +0 -38
- package/dist/configs/typescript.d.ts +0 -38
- package/dist/configs/unicorn.d.cts +0 -20
- package/dist/configs/unicorn.d.ts +0 -20
- package/dist/configs/vitest.d.cts +0 -22
- package/dist/configs/vitest.d.ts +0 -22
- package/dist/configs/vue.d.cts +0 -36
- package/dist/configs/vue.d.ts +0 -36
- package/dist/configs/yml.d.cts +0 -22
- package/dist/configs/yml.d.ts +0 -22
- package/dist/globs.d.cts +0 -14
- package/dist/globs.d.ts +0 -14
- package/dist/types/gens/comments.d.cts +0 -65
- package/dist/types/gens/comments.d.ts +0 -65
- package/dist/types/gens/eslint.d.cts +0 -23
- package/dist/types/gens/eslint.d.ts +0 -23
- package/dist/types/gens/imports.d.cts +0 -520
- package/dist/types/gens/imports.d.ts +0 -520
- package/dist/types/gens/javascript.d.cts +0 -3163
- package/dist/types/gens/javascript.d.ts +0 -3163
- package/dist/types/gens/jsdoc.d.cts +0 -796
- package/dist/types/gens/jsdoc.d.ts +0 -796
- package/dist/types/gens/jsonc.d.cts +0 -513
- package/dist/types/gens/jsonc.d.ts +0 -513
- package/dist/types/gens/markdown.d.cts +0 -42
- package/dist/types/gens/markdown.d.ts +0 -42
- package/dist/types/gens/prettier.d.cts +0 -2
- package/dist/types/gens/prettier.d.ts +0 -2
- package/dist/types/gens/promise.d.cts +0 -113
- package/dist/types/gens/promise.d.ts +0 -113
- package/dist/types/gens/react.d.cts +0 -1053
- package/dist/types/gens/react.d.ts +0 -1053
- package/dist/types/gens/regexp.d.cts +0 -553
- package/dist/types/gens/regexp.d.ts +0 -553
- package/dist/types/gens/svelte.d.cts +0 -491
- package/dist/types/gens/svelte.d.ts +0 -491
- package/dist/types/gens/toml.d.cts +0 -256
- package/dist/types/gens/toml.d.ts +0 -256
- package/dist/types/gens/typescript.d.cts +0 -1578
- package/dist/types/gens/typescript.d.ts +0 -1578
- package/dist/types/gens/unicorn.d.cts +0 -925
- package/dist/types/gens/unicorn.d.ts +0 -925
- package/dist/types/gens/vitest.d.cts +0 -377
- package/dist/types/gens/vitest.d.ts +0 -377
- package/dist/types/gens/vue.d.cts +0 -2746
- package/dist/types/gens/vue.d.ts +0 -2746
- package/dist/types/gens/yml.d.cts +0 -375
- package/dist/types/gens/yml.d.ts +0 -375
- package/dist/types/index.d.cts +0 -19
- package/dist/types/index.d.ts +0 -19
- package/dist/types/overrides.d.cts +0 -8
- package/dist/types/overrides.d.ts +0 -8
- package/dist/utils.d.cts +0 -18
- package/dist/utils.d.ts +0 -18
|
@@ -1,513 +0,0 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
export interface JsoncRules {
|
|
3
|
-
/**
|
|
4
|
-
* enforce line breaks after opening and before closing array brackets
|
|
5
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/array-bracket-newline.html
|
|
6
|
-
*/
|
|
7
|
-
'jsonc/array-bracket-newline'?: Linter.RuleEntry<JsoncArrayBracketNewline>;
|
|
8
|
-
/**
|
|
9
|
-
* disallow or enforce spaces inside of brackets
|
|
10
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/array-bracket-spacing.html
|
|
11
|
-
*/
|
|
12
|
-
'jsonc/array-bracket-spacing'?: Linter.RuleEntry<JsoncArrayBracketSpacing>;
|
|
13
|
-
/**
|
|
14
|
-
* enforce line breaks between array elements
|
|
15
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/array-element-newline.html
|
|
16
|
-
*/
|
|
17
|
-
'jsonc/array-element-newline'?: Linter.RuleEntry<JsoncArrayElementNewline>;
|
|
18
|
-
/**
|
|
19
|
-
* apply jsonc rules similar to your configured ESLint core rules
|
|
20
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/auto.html
|
|
21
|
-
*/
|
|
22
|
-
'jsonc/auto'?: Linter.RuleEntry<[]>;
|
|
23
|
-
/**
|
|
24
|
-
* require or disallow trailing commas
|
|
25
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/comma-dangle.html
|
|
26
|
-
*/
|
|
27
|
-
'jsonc/comma-dangle'?: Linter.RuleEntry<JsoncCommaDangle>;
|
|
28
|
-
/**
|
|
29
|
-
* enforce consistent comma style
|
|
30
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/comma-style.html
|
|
31
|
-
*/
|
|
32
|
-
'jsonc/comma-style'?: Linter.RuleEntry<JsoncCommaStyle>;
|
|
33
|
-
/**
|
|
34
|
-
* enforce consistent indentation
|
|
35
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/indent.html
|
|
36
|
-
*/
|
|
37
|
-
'jsonc/indent'?: Linter.RuleEntry<JsoncIndent>;
|
|
38
|
-
/**
|
|
39
|
-
* enforce naming convention to property key names
|
|
40
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/key-name-casing.html
|
|
41
|
-
*/
|
|
42
|
-
'jsonc/key-name-casing'?: Linter.RuleEntry<JsoncKeyNameCasing>;
|
|
43
|
-
/**
|
|
44
|
-
* enforce consistent spacing between keys and values in object literal properties
|
|
45
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/key-spacing.html
|
|
46
|
-
*/
|
|
47
|
-
'jsonc/key-spacing'?: Linter.RuleEntry<JsoncKeySpacing>;
|
|
48
|
-
/**
|
|
49
|
-
* disallow BigInt literals
|
|
50
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-bigint-literals.html
|
|
51
|
-
*/
|
|
52
|
-
'jsonc/no-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
53
|
-
/**
|
|
54
|
-
* disallow binary expression
|
|
55
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-binary-expression.html
|
|
56
|
-
*/
|
|
57
|
-
'jsonc/no-binary-expression'?: Linter.RuleEntry<[]>;
|
|
58
|
-
/**
|
|
59
|
-
* disallow binary numeric literals
|
|
60
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-binary-numeric-literals.html
|
|
61
|
-
*/
|
|
62
|
-
'jsonc/no-binary-numeric-literals'?: Linter.RuleEntry<[]>;
|
|
63
|
-
/**
|
|
64
|
-
* disallow comments
|
|
65
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-comments.html
|
|
66
|
-
*/
|
|
67
|
-
'jsonc/no-comments'?: Linter.RuleEntry<[]>;
|
|
68
|
-
/**
|
|
69
|
-
* disallow duplicate keys in object literals
|
|
70
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-dupe-keys.html
|
|
71
|
-
*/
|
|
72
|
-
'jsonc/no-dupe-keys'?: Linter.RuleEntry<[]>;
|
|
73
|
-
/**
|
|
74
|
-
* disallow escape sequences in identifiers.
|
|
75
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-escape-sequence-in-identifier.html
|
|
76
|
-
*/
|
|
77
|
-
'jsonc/no-escape-sequence-in-identifier'?: Linter.RuleEntry<[]>;
|
|
78
|
-
/**
|
|
79
|
-
* disallow leading or trailing decimal points in numeric literals
|
|
80
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-floating-decimal.html
|
|
81
|
-
*/
|
|
82
|
-
'jsonc/no-floating-decimal'?: Linter.RuleEntry<[]>;
|
|
83
|
-
/**
|
|
84
|
-
* disallow hexadecimal numeric literals
|
|
85
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-hexadecimal-numeric-literals.html
|
|
86
|
-
*/
|
|
87
|
-
'jsonc/no-hexadecimal-numeric-literals'?: Linter.RuleEntry<[]>;
|
|
88
|
-
/**
|
|
89
|
-
* disallow Infinity
|
|
90
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-infinity.html
|
|
91
|
-
*/
|
|
92
|
-
'jsonc/no-infinity'?: Linter.RuleEntry<[]>;
|
|
93
|
-
/**
|
|
94
|
-
* disallow irregular whitespace
|
|
95
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-irregular-whitespace.html
|
|
96
|
-
*/
|
|
97
|
-
'jsonc/no-irregular-whitespace'?: Linter.RuleEntry<JsoncNoIrregularWhitespace>;
|
|
98
|
-
/**
|
|
99
|
-
* disallow multiline strings
|
|
100
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-multi-str.html
|
|
101
|
-
*/
|
|
102
|
-
'jsonc/no-multi-str'?: Linter.RuleEntry<[]>;
|
|
103
|
-
/**
|
|
104
|
-
* disallow NaN
|
|
105
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-nan.html
|
|
106
|
-
*/
|
|
107
|
-
'jsonc/no-nan'?: Linter.RuleEntry<[]>;
|
|
108
|
-
/**
|
|
109
|
-
* disallow number property keys
|
|
110
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-number-props.html
|
|
111
|
-
*/
|
|
112
|
-
'jsonc/no-number-props'?: Linter.RuleEntry<[]>;
|
|
113
|
-
/**
|
|
114
|
-
* disallow numeric separators
|
|
115
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-numeric-separators.html
|
|
116
|
-
*/
|
|
117
|
-
'jsonc/no-numeric-separators'?: Linter.RuleEntry<[]>;
|
|
118
|
-
/**
|
|
119
|
-
* disallow legacy octal literals
|
|
120
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-octal.html
|
|
121
|
-
*/
|
|
122
|
-
'jsonc/no-octal'?: Linter.RuleEntry<[]>;
|
|
123
|
-
/**
|
|
124
|
-
* disallow octal escape sequences in string literals
|
|
125
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-octal-escape.html
|
|
126
|
-
*/
|
|
127
|
-
'jsonc/no-octal-escape'?: Linter.RuleEntry<[]>;
|
|
128
|
-
/**
|
|
129
|
-
* disallow octal numeric literals
|
|
130
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-octal-numeric-literals.html
|
|
131
|
-
*/
|
|
132
|
-
'jsonc/no-octal-numeric-literals'?: Linter.RuleEntry<[]>;
|
|
133
|
-
/**
|
|
134
|
-
* disallow parentheses around the expression
|
|
135
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-parenthesized.html
|
|
136
|
-
*/
|
|
137
|
-
'jsonc/no-parenthesized'?: Linter.RuleEntry<[]>;
|
|
138
|
-
/**
|
|
139
|
-
* disallow plus sign
|
|
140
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-plus-sign.html
|
|
141
|
-
*/
|
|
142
|
-
'jsonc/no-plus-sign'?: Linter.RuleEntry<[]>;
|
|
143
|
-
/**
|
|
144
|
-
* disallow RegExp literals
|
|
145
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-regexp-literals.html
|
|
146
|
-
*/
|
|
147
|
-
'jsonc/no-regexp-literals'?: Linter.RuleEntry<[]>;
|
|
148
|
-
/**
|
|
149
|
-
* disallow sparse arrays
|
|
150
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-sparse-arrays.html
|
|
151
|
-
*/
|
|
152
|
-
'jsonc/no-sparse-arrays'?: Linter.RuleEntry<[]>;
|
|
153
|
-
/**
|
|
154
|
-
* disallow template literals
|
|
155
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-template-literals.html
|
|
156
|
-
*/
|
|
157
|
-
'jsonc/no-template-literals'?: Linter.RuleEntry<[]>;
|
|
158
|
-
/**
|
|
159
|
-
* disallow `undefined`
|
|
160
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-undefined-value.html
|
|
161
|
-
*/
|
|
162
|
-
'jsonc/no-undefined-value'?: Linter.RuleEntry<[]>;
|
|
163
|
-
/**
|
|
164
|
-
* disallow Unicode code point escape sequences.
|
|
165
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-unicode-codepoint-escapes.html
|
|
166
|
-
*/
|
|
167
|
-
'jsonc/no-unicode-codepoint-escapes'?: Linter.RuleEntry<[]>;
|
|
168
|
-
/**
|
|
169
|
-
* disallow unnecessary escape usage
|
|
170
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-useless-escape.html
|
|
171
|
-
*/
|
|
172
|
-
'jsonc/no-useless-escape'?: Linter.RuleEntry<[]>;
|
|
173
|
-
/**
|
|
174
|
-
* enforce consistent line breaks inside braces
|
|
175
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/object-curly-newline.html
|
|
176
|
-
*/
|
|
177
|
-
'jsonc/object-curly-newline'?: Linter.RuleEntry<JsoncObjectCurlyNewline>;
|
|
178
|
-
/**
|
|
179
|
-
* enforce consistent spacing inside braces
|
|
180
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/object-curly-spacing.html
|
|
181
|
-
*/
|
|
182
|
-
'jsonc/object-curly-spacing'?: Linter.RuleEntry<JsoncObjectCurlySpacing>;
|
|
183
|
-
/**
|
|
184
|
-
* enforce placing object properties on separate lines
|
|
185
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/object-property-newline.html
|
|
186
|
-
*/
|
|
187
|
-
'jsonc/object-property-newline'?: Linter.RuleEntry<JsoncObjectPropertyNewline>;
|
|
188
|
-
/**
|
|
189
|
-
* require quotes around object literal property names
|
|
190
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/quote-props.html
|
|
191
|
-
*/
|
|
192
|
-
'jsonc/quote-props'?: Linter.RuleEntry<JsoncQuoteProps>;
|
|
193
|
-
/**
|
|
194
|
-
* enforce use of double or single quotes
|
|
195
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/quotes.html
|
|
196
|
-
*/
|
|
197
|
-
'jsonc/quotes'?: Linter.RuleEntry<JsoncQuotes>;
|
|
198
|
-
/**
|
|
199
|
-
* require array values to be sorted
|
|
200
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/sort-array-values.html
|
|
201
|
-
*/
|
|
202
|
-
'jsonc/sort-array-values'?: Linter.RuleEntry<JsoncSortArrayValues>;
|
|
203
|
-
/**
|
|
204
|
-
* require object keys to be sorted
|
|
205
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/sort-keys.html
|
|
206
|
-
*/
|
|
207
|
-
'jsonc/sort-keys'?: Linter.RuleEntry<JsoncSortKeys>;
|
|
208
|
-
/**
|
|
209
|
-
* disallow spaces after unary operators
|
|
210
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/space-unary-ops.html
|
|
211
|
-
*/
|
|
212
|
-
'jsonc/space-unary-ops'?: Linter.RuleEntry<JsoncSpaceUnaryOps>;
|
|
213
|
-
/**
|
|
214
|
-
* disallow invalid number for JSON
|
|
215
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/valid-json-number.html
|
|
216
|
-
*/
|
|
217
|
-
'jsonc/valid-json-number'?: Linter.RuleEntry<[]>;
|
|
218
|
-
/**
|
|
219
|
-
* disallow parsing errors in Vue custom blocks
|
|
220
|
-
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/vue-custom-block/no-parsing-error.html
|
|
221
|
-
*/
|
|
222
|
-
'jsonc/vue-custom-block/no-parsing-error'?: Linter.RuleEntry<[]>;
|
|
223
|
-
}
|
|
224
|
-
type JsoncArrayBracketNewline = [] | [
|
|
225
|
-
(("always" | "never" | "consistent") | {
|
|
226
|
-
multiline?: boolean;
|
|
227
|
-
minItems?: (number | null);
|
|
228
|
-
})
|
|
229
|
-
];
|
|
230
|
-
type JsoncArrayBracketSpacing = [] | [("always" | "never")] | [
|
|
231
|
-
("always" | "never"),
|
|
232
|
-
{
|
|
233
|
-
singleValue?: boolean;
|
|
234
|
-
objectsInArrays?: boolean;
|
|
235
|
-
arraysInArrays?: boolean;
|
|
236
|
-
}
|
|
237
|
-
];
|
|
238
|
-
type JsoncArrayElementNewline = [] | [
|
|
239
|
-
(_JsoncArrayElementNewlineBasicConfig | {
|
|
240
|
-
ArrayExpression?: _JsoncArrayElementNewlineBasicConfig;
|
|
241
|
-
JSONArrayExpression?: _JsoncArrayElementNewlineBasicConfig;
|
|
242
|
-
ArrayPattern?: _JsoncArrayElementNewlineBasicConfig;
|
|
243
|
-
})
|
|
244
|
-
];
|
|
245
|
-
type _JsoncArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
|
|
246
|
-
multiline?: boolean;
|
|
247
|
-
minItems?: (number | null);
|
|
248
|
-
});
|
|
249
|
-
type JsoncCommaDangle = [] | [
|
|
250
|
-
(_JsoncCommaDangleValue | {
|
|
251
|
-
arrays?: _JsoncCommaDangleValueWithIgnore;
|
|
252
|
-
objects?: _JsoncCommaDangleValueWithIgnore;
|
|
253
|
-
imports?: _JsoncCommaDangleValueWithIgnore;
|
|
254
|
-
exports?: _JsoncCommaDangleValueWithIgnore;
|
|
255
|
-
functions?: _JsoncCommaDangleValueWithIgnore;
|
|
256
|
-
})
|
|
257
|
-
];
|
|
258
|
-
type _JsoncCommaDangleValue = ("always-multiline" | "always" | "never" | "only-multiline");
|
|
259
|
-
type _JsoncCommaDangleValueWithIgnore = ("always-multiline" | "always" | "ignore" | "never" | "only-multiline");
|
|
260
|
-
type JsoncCommaStyle = [] | [("first" | "last")] | [
|
|
261
|
-
("first" | "last"),
|
|
262
|
-
{
|
|
263
|
-
exceptions?: {
|
|
264
|
-
[k: string]: boolean | undefined;
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
|
-
];
|
|
268
|
-
type JsoncIndent = [] | [("tab" | number)] | [
|
|
269
|
-
("tab" | number),
|
|
270
|
-
{
|
|
271
|
-
SwitchCase?: number;
|
|
272
|
-
VariableDeclarator?: ((number | ("first" | "off")) | {
|
|
273
|
-
var?: (number | ("first" | "off"));
|
|
274
|
-
let?: (number | ("first" | "off"));
|
|
275
|
-
const?: (number | ("first" | "off"));
|
|
276
|
-
});
|
|
277
|
-
outerIIFEBody?: (number | "off");
|
|
278
|
-
MemberExpression?: (number | "off");
|
|
279
|
-
FunctionDeclaration?: {
|
|
280
|
-
parameters?: (number | ("first" | "off"));
|
|
281
|
-
body?: number;
|
|
282
|
-
};
|
|
283
|
-
FunctionExpression?: {
|
|
284
|
-
parameters?: (number | ("first" | "off"));
|
|
285
|
-
body?: number;
|
|
286
|
-
};
|
|
287
|
-
StaticBlock?: {
|
|
288
|
-
body?: number;
|
|
289
|
-
};
|
|
290
|
-
CallExpression?: {
|
|
291
|
-
arguments?: (number | ("first" | "off"));
|
|
292
|
-
};
|
|
293
|
-
ArrayExpression?: (number | ("first" | "off"));
|
|
294
|
-
ObjectExpression?: (number | ("first" | "off"));
|
|
295
|
-
ImportDeclaration?: (number | ("first" | "off"));
|
|
296
|
-
flatTernaryExpressions?: boolean;
|
|
297
|
-
offsetTernaryExpressions?: boolean;
|
|
298
|
-
ignoredNodes?: string[];
|
|
299
|
-
ignoreComments?: boolean;
|
|
300
|
-
}
|
|
301
|
-
];
|
|
302
|
-
type JsoncKeyNameCasing = [] | [
|
|
303
|
-
{
|
|
304
|
-
camelCase?: boolean;
|
|
305
|
-
PascalCase?: boolean;
|
|
306
|
-
SCREAMING_SNAKE_CASE?: boolean;
|
|
307
|
-
"kebab-case"?: boolean;
|
|
308
|
-
snake_case?: boolean;
|
|
309
|
-
ignores?: string[];
|
|
310
|
-
}
|
|
311
|
-
];
|
|
312
|
-
type JsoncKeySpacing = [] | [
|
|
313
|
-
({
|
|
314
|
-
align?: (("colon" | "value") | {
|
|
315
|
-
mode?: ("strict" | "minimum");
|
|
316
|
-
on?: ("colon" | "value");
|
|
317
|
-
beforeColon?: boolean;
|
|
318
|
-
afterColon?: boolean;
|
|
319
|
-
});
|
|
320
|
-
mode?: ("strict" | "minimum");
|
|
321
|
-
beforeColon?: boolean;
|
|
322
|
-
afterColon?: boolean;
|
|
323
|
-
} | {
|
|
324
|
-
singleLine?: {
|
|
325
|
-
mode?: ("strict" | "minimum");
|
|
326
|
-
beforeColon?: boolean;
|
|
327
|
-
afterColon?: boolean;
|
|
328
|
-
};
|
|
329
|
-
multiLine?: {
|
|
330
|
-
align?: (("colon" | "value") | {
|
|
331
|
-
mode?: ("strict" | "minimum");
|
|
332
|
-
on?: ("colon" | "value");
|
|
333
|
-
beforeColon?: boolean;
|
|
334
|
-
afterColon?: boolean;
|
|
335
|
-
});
|
|
336
|
-
mode?: ("strict" | "minimum");
|
|
337
|
-
beforeColon?: boolean;
|
|
338
|
-
afterColon?: boolean;
|
|
339
|
-
};
|
|
340
|
-
} | {
|
|
341
|
-
singleLine?: {
|
|
342
|
-
mode?: ("strict" | "minimum");
|
|
343
|
-
beforeColon?: boolean;
|
|
344
|
-
afterColon?: boolean;
|
|
345
|
-
};
|
|
346
|
-
multiLine?: {
|
|
347
|
-
mode?: ("strict" | "minimum");
|
|
348
|
-
beforeColon?: boolean;
|
|
349
|
-
afterColon?: boolean;
|
|
350
|
-
};
|
|
351
|
-
align?: {
|
|
352
|
-
mode?: ("strict" | "minimum");
|
|
353
|
-
on?: ("colon" | "value");
|
|
354
|
-
beforeColon?: boolean;
|
|
355
|
-
afterColon?: boolean;
|
|
356
|
-
};
|
|
357
|
-
})
|
|
358
|
-
];
|
|
359
|
-
type JsoncNoIrregularWhitespace = [] | [
|
|
360
|
-
{
|
|
361
|
-
skipComments?: boolean;
|
|
362
|
-
skipStrings?: boolean;
|
|
363
|
-
skipTemplates?: boolean;
|
|
364
|
-
skipRegExps?: boolean;
|
|
365
|
-
skipJSXText?: boolean;
|
|
366
|
-
}
|
|
367
|
-
];
|
|
368
|
-
type JsoncObjectCurlyNewline = [] | [
|
|
369
|
-
((("always" | "never") | {
|
|
370
|
-
multiline?: boolean;
|
|
371
|
-
minProperties?: number;
|
|
372
|
-
consistent?: boolean;
|
|
373
|
-
}) | {
|
|
374
|
-
ObjectExpression?: (("always" | "never") | {
|
|
375
|
-
multiline?: boolean;
|
|
376
|
-
minProperties?: number;
|
|
377
|
-
consistent?: boolean;
|
|
378
|
-
});
|
|
379
|
-
ObjectPattern?: (("always" | "never") | {
|
|
380
|
-
multiline?: boolean;
|
|
381
|
-
minProperties?: number;
|
|
382
|
-
consistent?: boolean;
|
|
383
|
-
});
|
|
384
|
-
ImportDeclaration?: (("always" | "never") | {
|
|
385
|
-
multiline?: boolean;
|
|
386
|
-
minProperties?: number;
|
|
387
|
-
consistent?: boolean;
|
|
388
|
-
});
|
|
389
|
-
ExportDeclaration?: (("always" | "never") | {
|
|
390
|
-
multiline?: boolean;
|
|
391
|
-
minProperties?: number;
|
|
392
|
-
consistent?: boolean;
|
|
393
|
-
});
|
|
394
|
-
})
|
|
395
|
-
];
|
|
396
|
-
type JsoncObjectCurlySpacing = [] | [("always" | "never")] | [
|
|
397
|
-
("always" | "never"),
|
|
398
|
-
{
|
|
399
|
-
arraysInObjects?: boolean;
|
|
400
|
-
objectsInObjects?: boolean;
|
|
401
|
-
}
|
|
402
|
-
];
|
|
403
|
-
type JsoncObjectPropertyNewline = [] | [
|
|
404
|
-
{
|
|
405
|
-
allowAllPropertiesOnSameLine?: boolean;
|
|
406
|
-
allowMultiplePropertiesPerLine?: boolean;
|
|
407
|
-
}
|
|
408
|
-
];
|
|
409
|
-
type JsoncQuoteProps = ([] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [
|
|
410
|
-
("always" | "as-needed" | "consistent" | "consistent-as-needed"),
|
|
411
|
-
{
|
|
412
|
-
keywords?: boolean;
|
|
413
|
-
unnecessary?: boolean;
|
|
414
|
-
numbers?: boolean;
|
|
415
|
-
}
|
|
416
|
-
]);
|
|
417
|
-
type JsoncQuotes = [] | [("single" | "double" | "backtick")] | [
|
|
418
|
-
("single" | "double" | "backtick"),
|
|
419
|
-
("avoid-escape" | {
|
|
420
|
-
avoidEscape?: boolean;
|
|
421
|
-
allowTemplateLiterals?: boolean;
|
|
422
|
-
})
|
|
423
|
-
];
|
|
424
|
-
type JsoncSortArrayValues = [
|
|
425
|
-
{
|
|
426
|
-
pathPattern: string;
|
|
427
|
-
order: ((string | {
|
|
428
|
-
valuePattern?: string;
|
|
429
|
-
order?: {
|
|
430
|
-
type?: ("asc" | "desc");
|
|
431
|
-
caseSensitive?: boolean;
|
|
432
|
-
natural?: boolean;
|
|
433
|
-
};
|
|
434
|
-
})[] | {
|
|
435
|
-
type?: ("asc" | "desc");
|
|
436
|
-
caseSensitive?: boolean;
|
|
437
|
-
natural?: boolean;
|
|
438
|
-
});
|
|
439
|
-
minValues?: number;
|
|
440
|
-
},
|
|
441
|
-
...({
|
|
442
|
-
pathPattern: string;
|
|
443
|
-
order: ((string | {
|
|
444
|
-
valuePattern?: string;
|
|
445
|
-
order?: {
|
|
446
|
-
type?: ("asc" | "desc");
|
|
447
|
-
caseSensitive?: boolean;
|
|
448
|
-
natural?: boolean;
|
|
449
|
-
};
|
|
450
|
-
})[] | {
|
|
451
|
-
type?: ("asc" | "desc");
|
|
452
|
-
caseSensitive?: boolean;
|
|
453
|
-
natural?: boolean;
|
|
454
|
-
});
|
|
455
|
-
minValues?: number;
|
|
456
|
-
})[]
|
|
457
|
-
];
|
|
458
|
-
type JsoncSortKeys = ([
|
|
459
|
-
{
|
|
460
|
-
pathPattern: string;
|
|
461
|
-
hasProperties?: string[];
|
|
462
|
-
order: ((string | {
|
|
463
|
-
keyPattern?: string;
|
|
464
|
-
order?: {
|
|
465
|
-
type?: ("asc" | "desc");
|
|
466
|
-
caseSensitive?: boolean;
|
|
467
|
-
natural?: boolean;
|
|
468
|
-
};
|
|
469
|
-
})[] | {
|
|
470
|
-
type?: ("asc" | "desc");
|
|
471
|
-
caseSensitive?: boolean;
|
|
472
|
-
natural?: boolean;
|
|
473
|
-
});
|
|
474
|
-
minKeys?: number;
|
|
475
|
-
allowLineSeparatedGroups?: boolean;
|
|
476
|
-
},
|
|
477
|
-
...({
|
|
478
|
-
pathPattern: string;
|
|
479
|
-
hasProperties?: string[];
|
|
480
|
-
order: ((string | {
|
|
481
|
-
keyPattern?: string;
|
|
482
|
-
order?: {
|
|
483
|
-
type?: ("asc" | "desc");
|
|
484
|
-
caseSensitive?: boolean;
|
|
485
|
-
natural?: boolean;
|
|
486
|
-
};
|
|
487
|
-
})[] | {
|
|
488
|
-
type?: ("asc" | "desc");
|
|
489
|
-
caseSensitive?: boolean;
|
|
490
|
-
natural?: boolean;
|
|
491
|
-
});
|
|
492
|
-
minKeys?: number;
|
|
493
|
-
allowLineSeparatedGroups?: boolean;
|
|
494
|
-
})[]
|
|
495
|
-
] | [] | [("asc" | "desc")] | [
|
|
496
|
-
("asc" | "desc"),
|
|
497
|
-
{
|
|
498
|
-
caseSensitive?: boolean;
|
|
499
|
-
natural?: boolean;
|
|
500
|
-
minKeys?: number;
|
|
501
|
-
allowLineSeparatedGroups?: boolean;
|
|
502
|
-
}
|
|
503
|
-
]);
|
|
504
|
-
type JsoncSpaceUnaryOps = [] | [
|
|
505
|
-
{
|
|
506
|
-
words?: boolean;
|
|
507
|
-
nonwords?: boolean;
|
|
508
|
-
overrides?: {
|
|
509
|
-
[k: string]: boolean | undefined;
|
|
510
|
-
};
|
|
511
|
-
}
|
|
512
|
-
];
|
|
513
|
-
export {};
|