unist
unist syntax trees
| Type | object |
|---|---|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/unist/latest.json |
| Source | https://www.schemastore.org/unist.json |
Validate with Lintel
npx @lintel/lintel check
Syntactic units in unist syntax trees are called nodes, and implement the Node interface.
Properties
The type field is a non-empty string representing the variant of a node. This field can be used to determine the type a node implements.
A position represents the location of a node in a source file. The value of the position field implements the Position interface. The position field must not be present if a node is generated.
2 nested properties
A point represents one place in a source file. The value of the point field implements the Point interface.
3 nested properties
The column field (1-indexed integer) represents a column in a source file.
The line field (1-indexed integer) represents a line in a source file.
The offset field (0-indexed integer) represents a character in a source file.
A point represents one place in a source file. The value of the point field implements the Point interface.
3 nested properties
The column field (1-indexed integer) represents a column in a source file.
The line field (1-indexed integer) represents a line in a source file.
The offset field (0-indexed integer) represents a character in a source file.
The children field is a list representing the children of a node.
The data field represents information from the ecosystem. The value of the data field implements the Data interface.
The value field can contain any value.
Definitions
A point represents one place in a source file. The value of the point field implements the Point interface.
The column field (1-indexed integer) represents a column in a source file.
The line field (1-indexed integer) represents a line in a source file.
The offset field (0-indexed integer) represents a character in a source file.
A position represents the location of a node in a source file. The value of the position field implements the Position interface. The position field must not be present if a node is generated.
A point represents one place in a source file. The value of the point field implements the Point interface.
3 nested properties
The column field (1-indexed integer) represents a column in a source file.
The line field (1-indexed integer) represents a line in a source file.
The offset field (0-indexed integer) represents a character in a source file.
A point represents one place in a source file. The value of the point field implements the Point interface.
3 nested properties
The column field (1-indexed integer) represents a column in a source file.
The line field (1-indexed integer) represents a line in a source file.
The offset field (0-indexed integer) represents a character in a source file.