From 0bf7412ad3baaccb780dd936463cd0fa1fb63b97 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 23 Apr 2023 22:17:02 +0200 Subject: [PATCH] build: add JSON schema to configuration files MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .eslintrc.json | 1 + .lintstagedrc.json | 1 + .prettierrc.json | 1 + tsconfig.json | 1 + 4 files changed, 4 insertions(+) diff --git a/.eslintrc.json b/.eslintrc.json index fe42d4cb..38c78361 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,4 +1,5 @@ { + "$schema": "http://json.schemastore.org/eslintrc", "root": true, "env": { "es2022": true, diff --git a/.lintstagedrc.json b/.lintstagedrc.json index 88f2a228..7b616f58 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -1,4 +1,5 @@ { + "$schema": "http://json.schemastore.org/lintstagedrc.schema", "{src,test}/**/*.{ts,tsx}": ["prettier --cache --write", "eslint --cache --fix"], "**/*.{json,md,yml,yaml}": ["prettier --cache --write"], "**/*.{js,jsx,mjs,cjs}": ["prettier --cache --write", "eslint --cache --fix"] diff --git a/.prettierrc.json b/.prettierrc.json index 5ac85e27..0ac900c1 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,4 +1,5 @@ { + "$schema": "http://json.schemastore.org/prettierrc", "printWidth": 100, "singleQuote": true } diff --git a/tsconfig.json b/tsconfig.json index f255c6c4..e3dba047 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,4 +1,5 @@ { + "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { /* Visit https://aka.ms/tsconfig.json to read more about this file */ -- 2.34.1