forked from SchemaStore/schemastore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
agripparc-1.3.json
88 lines (88 loc) · 2.89 KB
/
agripparc-1.3.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"$schema": "http://json-schema.org/draft-04/schema",
"additionalProperties": false,
"properties": {
"props": {
"description": "Which prop declaration method to use",
"type": "string",
"enum": ["ts", "jsdoc", "prop-types", "none"]
},
"children": {
"description": "Whether the component is meant to have children (FC) or not (VFC)",
"type": "boolean"
},
"typescript": {
"description": "Wether to use Typescript",
"type": "boolean"
},
"flat": {
"description": "Whether to create a new, dedicated dir for the component (false) or not (true)",
"type": "boolean"
},
"styling": {
"description": "Which styling solution to use",
"type": "string",
"enum": ["css", "scss", "jss", "mui", "react-native", "none"]
},
"stylingModule": {
"description": "Relevant for `css` or `scss` styling. If true, generates a scoped `module` stylesheet",
"type": "boolean"
},
"importReact": {
"description": "Whether to import React",
"type": "boolean"
},
"overwrite": {
"description": "Whether to overwrite existing files, if any are found",
"type": "boolean"
},
"postCommand": {
"description": "A command to run after a component was successfully generated",
"type": "string"
},
"baseDir": {
"description": "Path to a base directory which components should be genenrated in or relative to",
"type": "string"
},
"destination": {
"description": "The path in which the component folder/files should be generated, relative to baseDir",
"type": "string"
},
"allowOutsideBase": {
"description": "If true, allows components to be generated outside the resolved baseDir",
"type": "boolean"
},
"exportType": {
"description": "Whether to use a named export or a default export for the component",
"type": "string",
"enum": ["named", "default"]
},
"declaration": {
"description": "Whether to declare the component as a const with an arrow function or a function declaration",
"type": "string",
"enum": ["const", "function"]
},
"memo": {
"description": "Whether to generate a memo() component. Overrides the declaration option",
"type": "boolean"
},
"separateIndex": {
"description": "Whether to use a dedicated index file (recommended)",
"type": "boolean"
},
"reactNative": {
"description": "Whether to generate React Native components"
},
"debug": {
"description": "Whether to log additional debug information",
"type": "boolean"
},
"$schema": {
"description": "Link to https://json.schemastore.org/agripparc-1.3.json",
"type": "string",
"enum": ["https://json.schemastore.org/agripparc-1.3.json"]
}
},
"title": "JSON schema for the Agrippa config file",
"type": "object"
}