{
"file_format": "1.0",
"version":"0.1.0",
"matches": {
"<<matcher>>": {
"description": "<<description>>",
"comment": "<<comment>>",
"flavors": {
"<<flavor>>": {
"description": "<<description>>",
"comment": "<<comment>>",
"reference": "<<reference>>",
"editorconfig": {
"<<setting>>": "<<value>>"
}
}
}
}
}
}
Where
matcher
stands for the default files-glob the section defines; the format[
and ]
in the editorconfig-file.flavors
stands for the given flavor name; it should be used to let thecommon
or convention
) for the section.setting
and value
are the editorconfig-settings for that flavor;value
can be a string, boolean or int value.description
contains the plain-text description of that flavor;reference
is the reference to the source of the flavor; it should a URLcomment
can be placed within a <<matcher>>
and <<flavor>>
and isTo perform all the checks that are available:
npm install
npm run lint
To validate the JSON without node, there are several sites available like
https://www.jsonschemavalidator.net/ and https://jsonschemalint.com/