From bc23285c554259a7e71511dafb227cb67879b42f Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Fri, 2 Jun 2023 15:26:49 +0200 Subject: [PATCH] Added VS Code workspace settings file refs https://ghost.slack.com/archives/C02G9E68C/p1685611322859309 refs https://github.com/TryGhost/Koenig/commit/7b6eb3171a0059f2c4f5093e3d503f039a012496 - this introduces a `.vscode/settings.json` file which should provide some reasonable default settings when dealing with this repo - changes include setting some search exclusions and fixing the working directory for eslint so Tailwind config is picked up correctly --- .gitignore | 1 + .vscode/settings.json | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index d2553d65ff..68e3e83745 100644 --- a/.gitignore +++ b/.gitignore @@ -67,6 +67,7 @@ typings/ *.sublime-* .vscode/* !.vscode/launch.json +!.vscode/settings.json # OSX .DS_Store diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000000..b10bf0ca57 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,17 @@ +{ + "eslint.workingDirectories": [ + { + "pattern": "./ghost/*/" + } + ], + "search.exclude": { + "**/*.js.snap": true, + "**/.git": true, + "**/build/*": true, + "**/coverage/**": true, + "**/dist/**": true, + "**/ghost.map": true, + "**/node_modules": true, + "ghost/core/core/built/**": true + } +} \ No newline at end of file