From 4a98b84f5fa06356b45a61c6de7d4e174f3474c2 Mon Sep 17 00:00:00 2001 From: Dirk Baeumer Date: Mon, 20 Jan 2020 10:46:58 +0100 Subject: [PATCH] Fixes #805: Autocompletion inside package.json for tooling packages configs (e.g. eslint, babel) --- package-json-schema.json | 9 +++++++++ package.json | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 package-json-schema.json diff --git a/package-json-schema.json b/package-json-schema.json new file mode 100644 index 00000000..5d012d27 --- /dev/null +++ b/package-json-schema.json @@ -0,0 +1,9 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "properties": { + "eslintConfig": { + "description": "ESLint configuration", + "$ref": "http://json.schemastore.org/eslintrc" + } + } +} \ No newline at end of file diff --git a/package.json b/package.json index bab659e4..694c0e8d 100644 --- a/package.json +++ b/package.json @@ -409,6 +409,10 @@ { "fileMatch": ".eslintrc.json", "url": "http://json.schemastore.org/eslintrc" + }, + { + "fileMatch": "package.json", + "url": "./package-json-schema.json" } ], "languages": [