From ad26c8415b149548eca4cff43fd80c1e8e1eb909 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Tue, 19 Sep 2023 23:31:50 +0200 Subject: [PATCH] chore: json schemas inclusion --- knowledge base/visual studio code.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/knowledge base/visual studio code.md b/knowledge base/visual studio code.md index 60e2d4d..051666e 100644 --- a/knowledge base/visual studio code.md +++ b/knowledge base/visual studio code.md @@ -7,6 +7,7 @@ 1. [Built-in](#built-in) 1. [Extensions](#extensions) 1. [Example](#example) + 1. [Use JSON schemas](#use-json-schemas) 1. [Network connections](#network-connections) 1. [Troubleshooting](#troubleshooting) 1. [_No extensions found_ when running from source](#no-extensions-found-when-running-from-source) @@ -79,6 +80,29 @@ } ``` +### Use JSON schemas + +```json +"json.schemas": [ + { + "fileMatch": ["/.commitlintrc"], + "url": "https://json.schemastore.org/commitlintrc.json" + }, + { + "fileMatch": ["/.hadolint.yaml"], + "url": "https://raw.githubusercontent.com/hadolint/hadolint/master/contrib/hadolint.json" + }, + { + "fileMatch": ["/.pre-commit-config.yaml"], + "url": "https://json.schemastore.org/pre-commit-config.json" + }, + { + "fileMatch": ["/.yamllint.yaml"], + "url": "https://json.schemastore.org/yamllint.json" + } +], +``` + ## Network connections See [Network connections in Visual Studio Code].