summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/table/dist/schemas/config.json
blob: 36074181494ce19f92f25abab8749bce1e3bc3bd (plain)
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
    "$id": "config.json",
    "$schema": "http://json-schema.org/draft-06/schema#",
    "type": "object",
    "properties": {
        "border": {
            "$ref": "#/definitions/borders"
        },
        "columns": {
            "$ref": "#/definitions/columns"
        },
        "columnDefault": {
            "$ref": "#/definitions/column"
        },
        "drawHorizontalLine": {
            "typeof": "function"
        }
    },
    "additionalProperties": false,
    "definitions": {
        "columns": {
            "type": "object",
            "patternProperties": {
                "^[0-9]+$": {
                    "$ref": "#/definitions/column"
                }
            },
            "additionalProperties": false
        },
        "column": {
            "type": "object",
            "properties": {
                "alignment": {
                    "type": "string",
                    "enum": [
                        "left",
                        "right",
                        "center"
                    ]
                },
                "width": {
                    "type": "number"
                },
                "wrapWord": {
                    "type": "boolean"
                },
                "truncate": {
                    "type": "number"
                },
                "paddingLeft": {
                    "type": "number"
                },
                "paddingRight": {
                    "type": "number"
                }
            },
            "additionalProperties": false
        },
        "borders": {
            "type": "object",
            "properties": {
                "topBody": {
                    "$ref": "#/definitions/border"
                },
                "topJoin": {
                    "$ref": "#/definitions/border"
                },
                "topLeft": {
                    "$ref": "#/definitions/border"
                },
                "topRight": {
                    "$ref": "#/definitions/border"
                },
                "bottomBody": {
                    "$ref": "#/definitions/border"
                },
                "bottomJoin": {
                    "$ref": "#/definitions/border"
                },
                "bottomLeft": {
                    "$ref": "#/definitions/border"
                },
                "bottomRight": {
                    "$ref": "#/definitions/border"
                },
                "bodyLeft": {
                    "$ref": "#/definitions/border"
                },
                "bodyRight": {
                    "$ref": "#/definitions/border"
                },
                "bodyJoin": {
                    "$ref": "#/definitions/border"
                },
                "joinBody": {
                    "$ref": "#/definitions/border"
                },
                "joinLeft": {
                    "$ref": "#/definitions/border"
                },
                "joinRight": {
                    "$ref": "#/definitions/border"
                },
                "joinJoin": {
                    "$ref": "#/definitions/border"
                }
            },
            "additionalProperties": false
        },
        "border": {
            "type": "string"
        }
    }
}