@x18n/core 0.0.0 → 0.0.2

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.
@@ -1,528 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "$schema": {
5
- "type": "string"
6
- },
7
- "root": {
8
- "type": "string"
9
- },
10
- "name": {
11
- "type": "string"
12
- },
13
- "sourceLocale": {
14
- "type": "string"
15
- },
16
- "locales": {
17
- "type": "array",
18
- "items": {
19
- "type": "string"
20
- }
21
- },
22
- "ignoreLocales": {
23
- "type": "array",
24
- "items": {
25
- "type": "string"
26
- }
27
- },
28
- "presets": {
29
- "anyOf": [
30
- {
31
- "const": "auto"
32
- },
33
- {
34
- "type": "array",
35
- "items": {
36
- "anyOf": [
37
- {
38
- "type": "string"
39
- },
40
- {
41
- "type": "array",
42
- "items": [
43
- {
44
- "type": "string"
45
- },
46
- {
47
- "type": "object"
48
- }
49
- ],
50
- "minItems": 2
51
- }
52
- ]
53
- }
54
- }
55
- ]
56
- },
57
- "plugins": {
58
- "type": "array",
59
- "items": {
60
- "anyOf": [
61
- {
62
- "type": "string"
63
- },
64
- {
65
- "type": "array",
66
- "items": [
67
- {
68
- "type": "string"
69
- },
70
- {
71
- "type": "object"
72
- }
73
- ],
74
- "minItems": 2
75
- }
76
- ]
77
- }
78
- },
79
- "resources": {
80
- "type": "array",
81
- "items": {
82
- "type": "object",
83
- "properties": {
84
- "pattern": {
85
- "type": "string"
86
- },
87
- "format": {
88
- "type": "string"
89
- },
90
- "namespace": {
91
- "type": "string"
92
- },
93
- "locale": {
94
- "type": "string"
95
- },
96
- "execute": {
97
- "type": "boolean"
98
- }
99
- },
100
- "required": [
101
- "pattern"
102
- ],
103
- "additionalProperties": false
104
- }
105
- },
106
- "formats": {
107
- "type": "object",
108
- "propertyNames": {
109
- "type": "string"
110
- },
111
- "additionalProperties": {
112
- "type": "string"
113
- }
114
- },
115
- "keyStyle": {
116
- "enum": [
117
- "auto",
118
- "nested",
119
- "flat"
120
- ],
121
- "type": "string"
122
- },
123
- "namespace": {
124
- "type": "object",
125
- "properties": {
126
- "separator": {
127
- "type": "string"
128
- },
129
- "default": {
130
- "type": "string"
131
- }
132
- },
133
- "required": [],
134
- "additionalProperties": false
135
- },
136
- "usage": {
137
- "type": "object",
138
- "properties": {
139
- "include": {
140
- "type": "array",
141
- "items": {
142
- "type": "string"
143
- }
144
- },
145
- "exclude": {
146
- "type": "array",
147
- "items": {
148
- "type": "string"
149
- }
150
- },
151
- "calls": {
152
- "type": "array",
153
- "items": {
154
- "type": "object",
155
- "properties": {
156
- "callee": {
157
- "anyOf": [
158
- {
159
- "type": "string"
160
- },
161
- {
162
- "type": "array",
163
- "items": {
164
- "type": "string"
165
- }
166
- }
167
- ]
168
- },
169
- "kind": {
170
- "enum": [
171
- "call",
172
- "selector",
173
- "accessor"
174
- ],
175
- "type": "string"
176
- },
177
- "key": {
178
- "anyOf": [
179
- {
180
- "type": "number"
181
- },
182
- {
183
- "type": "object",
184
- "properties": {
185
- "arg": {
186
- "type": "number"
187
- },
188
- "property": {
189
- "type": "string"
190
- }
191
- },
192
- "required": [
193
- "arg"
194
- ],
195
- "additionalProperties": false
196
- }
197
- ]
198
- },
199
- "namespace": {
200
- "type": "object",
201
- "properties": {
202
- "arg": {
203
- "type": "number"
204
- },
205
- "property": {
206
- "type": "string"
207
- }
208
- },
209
- "required": [
210
- "arg"
211
- ],
212
- "additionalProperties": false
213
- },
214
- "keyPrefix": {
215
- "type": "object",
216
- "properties": {
217
- "arg": {
218
- "type": "number"
219
- },
220
- "property": {
221
- "type": "string"
222
- }
223
- },
224
- "required": [
225
- "arg"
226
- ],
227
- "additionalProperties": false
228
- },
229
- "factory": {
230
- "type": "boolean"
231
- },
232
- "returns": {
233
- "type": "array",
234
- "items": {
235
- "type": "string"
236
- }
237
- },
238
- "types": {
239
- "type": "array",
240
- "items": {
241
- "type": "string"
242
- }
243
- }
244
- },
245
- "required": [
246
- "callee"
247
- ],
248
- "additionalProperties": false
249
- }
250
- },
251
- "regex": {
252
- "type": "array",
253
- "items": {
254
- "type": "object",
255
- "properties": {
256
- "extensions": {
257
- "type": "array",
258
- "items": {
259
- "type": "string"
260
- }
261
- },
262
- "patterns": {
263
- "type": "array",
264
- "items": {
265
- "type": "string"
266
- }
267
- }
268
- },
269
- "required": [
270
- "extensions",
271
- "patterns"
272
- ],
273
- "additionalProperties": false
274
- }
275
- },
276
- "ignoreCallees": {
277
- "type": "array",
278
- "items": {
279
- "type": "string"
280
- }
281
- },
282
- "keysInUse": {
283
- "type": "array",
284
- "items": {
285
- "type": "string"
286
- }
287
- },
288
- "derivedKeys": {
289
- "type": "array",
290
- "items": {
291
- "type": "string"
292
- }
293
- }
294
- },
295
- "required": [],
296
- "additionalProperties": false
297
- },
298
- "write": {
299
- "type": "object",
300
- "properties": {
301
- "sort": {
302
- "anyOf": [
303
- {
304
- "const": false
305
- },
306
- {
307
- "enum": [
308
- "binary",
309
- "locale"
310
- ],
311
- "type": "string"
312
- }
313
- ]
314
- },
315
- "indent": {
316
- "anyOf": [
317
- {
318
- "type": "number"
319
- },
320
- {
321
- "const": "tab"
322
- }
323
- ]
324
- },
325
- "keepFilled": {
326
- "type": "boolean"
327
- }
328
- },
329
- "required": [],
330
- "additionalProperties": false
331
- },
332
- "extract": {
333
- "type": "object",
334
- "properties": {
335
- "autoDetect": {
336
- "type": "boolean"
337
- },
338
- "keygen": {
339
- "enum": [
340
- "slug",
341
- "source",
342
- "random",
343
- "empty"
344
- ],
345
- "type": "string"
346
- },
347
- "keyCase": {
348
- "enum": [
349
- "camel",
350
- "snake",
351
- "kebab",
352
- "dot"
353
- ],
354
- "type": "string"
355
- },
356
- "keyPrefix": {
357
- "type": "string"
358
- },
359
- "keyMaxLength": {
360
- "type": "number"
361
- },
362
- "reuseExisting": {
363
- "type": "boolean"
364
- },
365
- "ignore": {
366
- "type": "array",
367
- "items": {
368
- "type": "string"
369
- }
370
- },
371
- "ignoreByFile": {
372
- "type": "object",
373
- "propertyNames": {
374
- "type": "string"
375
- },
376
- "additionalProperties": {
377
- "type": "array",
378
- "items": {
379
- "type": "string"
380
- }
381
- }
382
- },
383
- "ignoreAttributes": {
384
- "type": "array",
385
- "items": {
386
- "type": "string"
387
- }
388
- },
389
- "ignoreCallees": {
390
- "type": "array",
391
- "items": {
392
- "type": "string"
393
- }
394
- },
395
- "templates": {
396
- "type": "array",
397
- "items": {
398
- "anyOf": [
399
- {
400
- "type": "string"
401
- },
402
- {
403
- "type": "object",
404
- "properties": {
405
- "template": {
406
- "type": "string"
407
- },
408
- "kinds": {
409
- "type": "array",
410
- "items": {
411
- "type": "string"
412
- }
413
- },
414
- "files": {
415
- "type": "array",
416
- "items": {
417
- "type": "string"
418
- }
419
- },
420
- "imports": {
421
- "type": "array",
422
- "items": {
423
- "type": "string"
424
- }
425
- }
426
- },
427
- "required": [
428
- "template"
429
- ],
430
- "additionalProperties": false
431
- }
432
- ]
433
- }
434
- }
435
- },
436
- "required": [],
437
- "additionalProperties": false
438
- },
439
- "checks": {
440
- "type": "object",
441
- "propertyNames": {
442
- "type": "string"
443
- },
444
- "additionalProperties": {
445
- "anyOf": [
446
- {
447
- "enum": [
448
- "error",
449
- "warning",
450
- "info",
451
- "hint",
452
- "off"
453
- ],
454
- "type": "string"
455
- },
456
- {
457
- "type": "array",
458
- "items": [
459
- {
460
- "enum": [
461
- "error",
462
- "warning",
463
- "info",
464
- "hint",
465
- "off"
466
- ],
467
- "type": "string"
468
- },
469
- {
470
- "type": "object"
471
- }
472
- ],
473
- "minItems": 2
474
- }
475
- ]
476
- }
477
- },
478
- "strict": {
479
- "type": "boolean"
480
- },
481
- "ignoreKeys": {
482
- "type": "array",
483
- "items": {
484
- "type": "string"
485
- }
486
- },
487
- "glossary": {
488
- "type": "array",
489
- "items": {
490
- "type": "object",
491
- "properties": {
492
- "term": {
493
- "type": "string"
494
- },
495
- "translations": {
496
- "type": "object",
497
- "propertyNames": {
498
- "type": "string"
499
- },
500
- "additionalProperties": {
501
- "type": "string"
502
- }
503
- },
504
- "note": {
505
- "type": "string"
506
- },
507
- "doNotTranslate": {
508
- "type": "boolean"
509
- }
510
- },
511
- "required": [
512
- "term"
513
- ],
514
- "additionalProperties": false
515
- }
516
- },
517
- "projects": {
518
- "type": "array",
519
- "items": {
520
- "type": "string"
521
- }
522
- }
523
- },
524
- "required": [],
525
- "additionalProperties": false,
526
- "$schema": "http://json-schema.org/draft-07/schema#",
527
- "title": "x18n config"
528
- }