From: Jérôme Benoit Date: Sun, 23 Apr 2023 20:17:02 +0000 (+0200) Subject: build: add JSON schema to configuration files X-Git-Tag: v1.2.12~102 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0bf7412ad3baaccb780dd936463cd0fa1fb63b97;p=e-mobility-charging-stations-simulator.git build: add JSON schema to configuration files Signed-off-by: Jérôme Benoit --- 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 */