eslint-plugin-json-schema-validator icon indicating copy to clipboard operation
eslint-plugin-json-schema-validator copied to clipboard

Support `yaml-language-server: $schema=` Comments

Open Fleshgrinder opened this issue 1 year ago • 1 comments
trafficstars

Many YAML files don't allow $schema properties and it's thus necessary to manually configure the schemas in ESLint. It would be nice to have support for the https://github.com/redhat-developer/yaml-language-server comment, which isn't only supported in Visual Studio Code but also in the JetBrains products.

# yaml-language-server: $schema=https://json-schema.org/draft-07/schema
# yaml-language-server: $schema=../custom.schema.json

Fleshgrinder avatar Aug 15 '24 16:08 Fleshgrinder