Closed cloudsolace closed 2 years ago
There is a bug on the VueCodemirror6 side and it cannot be specified with the lint
prop, but it can be avoided with the extensions
prop.
For JSON, specify the extensions prop as shown below.
<code-mirror v-model="value" :extensions="cmExtensions" />
const cmExtensions: Extension[] = [
linter(jsonParseLinter()),
lintGutter(),
basicSetup,
json(),
];
The point is not to use the basic
prop, but to specify it directly in the extensions
prop.
Fixed in 0.5.1
.
Was trying to find any examples with json lint but in vain, can someone help ?