From 7ade24504f8fc1231826ff5d9fb83302f319e990 Mon Sep 17 00:00:00 2001 From: Hongbo Miao <3375461+hongbo-miao@users.noreply.github.com> Date: Thu, 2 Jan 2025 19:01:13 -0800 Subject: [PATCH] feat(json): add json schema --- api-node/package.json | 1 + api-node/tsconfig.json | 1 + data-visualization/grafana/hm-panel-plugin/package.json | 1 + data-visualization/grafana/hm-panel-plugin/tsconfig.json | 1 + ethereum/package.json | 1 + ethereum/tsconfig.json | 1 + mobile/mobile-react-native/package.json | 1 + mobile/mobile-react-native/tsconfig.json | 1 + package.json | 2 +- web-cypress/package-lock.json | 4 ++-- web-cypress/package.json | 3 ++- web-cypress/tsconfig.json | 1 + web/package.json | 1 + web/tsconfig.json | 1 + 14 files changed, 16 insertions(+), 4 deletions(-) diff --git a/api-node/package.json b/api-node/package.json index f95f5cdf90..df8fceda42 100644 --- a/api-node/package.json +++ b/api-node/package.json @@ -1,4 +1,5 @@ { + "$schema": "https://json.schemastore.org/package.json", "name": "hm-api-node", "private": true, "engines": { diff --git a/api-node/tsconfig.json b/api-node/tsconfig.json index 648a4c5b70..a479494559 100644 --- a/api-node/tsconfig.json +++ b/api-node/tsconfig.json @@ -1,4 +1,5 @@ { + "$schema": "https://json.schemastore.org/tsconfig.json", "compilerOptions": { /* Visit https://aka.ms/tsconfig to read more about this file */ diff --git a/data-visualization/grafana/hm-panel-plugin/package.json b/data-visualization/grafana/hm-panel-plugin/package.json index 812953f660..622d70c22f 100644 --- a/data-visualization/grafana/hm-panel-plugin/package.json +++ b/data-visualization/grafana/hm-panel-plugin/package.json @@ -1,4 +1,5 @@ { + "$schema": "https://json.schemastore.org/package.json", "name": "hm-panel-plugin", "version": "1.0.0", "private": true, diff --git a/data-visualization/grafana/hm-panel-plugin/tsconfig.json b/data-visualization/grafana/hm-panel-plugin/tsconfig.json index 5e00199709..f651dc4503 100644 --- a/data-visualization/grafana/hm-panel-plugin/tsconfig.json +++ b/data-visualization/grafana/hm-panel-plugin/tsconfig.json @@ -1,4 +1,5 @@ { + "$schema": "https://json.schemastore.org/tsconfig.json", "extends": "./.config/tsconfig.json", "compilerOptions": { "noEmit": true diff --git a/ethereum/package.json b/ethereum/package.json index d0f3f694bf..3bf7ac7adc 100644 --- a/ethereum/package.json +++ b/ethereum/package.json @@ -1,4 +1,5 @@ { + "$schema": "https://json.schemastore.org/package.json", "name": "hm-ethereum", "private": true, "engines": { diff --git a/ethereum/tsconfig.json b/ethereum/tsconfig.json index 648a4c5b70..a479494559 100644 --- a/ethereum/tsconfig.json +++ b/ethereum/tsconfig.json @@ -1,4 +1,5 @@ { + "$schema": "https://json.schemastore.org/tsconfig.json", "compilerOptions": { /* Visit https://aka.ms/tsconfig to read more about this file */ diff --git a/mobile/mobile-react-native/package.json b/mobile/mobile-react-native/package.json index 60408843ac..9596dacfc0 100644 --- a/mobile/mobile-react-native/package.json +++ b/mobile/mobile-react-native/package.json @@ -1,4 +1,5 @@ { + "$schema": "https://json.schemastore.org/package.json", "name": "hm-mobile", "private": true, "engines": { diff --git a/mobile/mobile-react-native/tsconfig.json b/mobile/mobile-react-native/tsconfig.json index 7f11758a73..44a2570f39 100644 --- a/mobile/mobile-react-native/tsconfig.json +++ b/mobile/mobile-react-native/tsconfig.json @@ -1,4 +1,5 @@ { + "$schema": "https://json.schemastore.org/tsconfig.json", "extends": "expo/tsconfig.base", "compilerOptions": { "noEmit": true, diff --git a/package.json b/package.json index df4877c682..8d4bd2c658 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,5 @@ { + "$schema": "https://json.schemastore.org/package.json", "name": "hongbomiao.com", "homepage": "https://www.hongbomiao.com", "description": "Hongbo Miao – Making magic happen", @@ -11,7 +12,6 @@ "type": "git", "url": "https://github.com/hongbo-miao/hongbomiao.com" }, - "private": true, "engines": { "node": "22.x" }, diff --git a/web-cypress/package-lock.json b/web-cypress/package-lock.json index c87a37c28f..a18e88f712 100644 --- a/web-cypress/package-lock.json +++ b/web-cypress/package-lock.json @@ -1,10 +1,10 @@ { - "name": "hm-cypress", + "name": "web-cypress", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "hm-cypress", + "name": "web-cypress", "devDependencies": { "@eslint/js": "9.17.0", "@typescript-eslint/eslint-plugin": "8.19.0", diff --git a/web-cypress/package.json b/web-cypress/package.json index 219285d9f3..875e83f351 100644 --- a/web-cypress/package.json +++ b/web-cypress/package.json @@ -1,5 +1,6 @@ { - "name": "hm-cypress", + "$schema": "https://json.schemastore.org/package.json", + "name": "web-cypress", "private": true, "engines": { "node": "22.x" diff --git a/web-cypress/tsconfig.json b/web-cypress/tsconfig.json index 4b9cc10966..e0c0dc7e4b 100644 --- a/web-cypress/tsconfig.json +++ b/web-cypress/tsconfig.json @@ -1,4 +1,5 @@ { + "$schema": "https://json.schemastore.org/tsconfig.json", "compilerOptions": { "noEmit": true, "strict": true, diff --git a/web/package.json b/web/package.json index ddaf9493f1..24df0de1fe 100644 --- a/web/package.json +++ b/web/package.json @@ -1,4 +1,5 @@ { + "$schema": "https://json.schemastore.org/package.json", "name": "hm-web", "private": true, "engines": { diff --git a/web/tsconfig.json b/web/tsconfig.json index ccf328b2c2..62af84cfad 100644 --- a/web/tsconfig.json +++ b/web/tsconfig.json @@ -1,4 +1,5 @@ { + "$schema": "https://json.schemastore.org/tsconfig.json", "compilerOptions": { "target": "es5", "lib": [