From 6d7392aadefb9ec6d2c5447bb8011aea8b0b9f5d Mon Sep 17 00:00:00 2001 From: Eric Fortmeyer Date: Thu, 9 Feb 2023 18:31:34 -0600 Subject: [PATCH] build: add ide config --- .gitignore | 1 - .vscode/settings.json | 33 +++++++++++++++++++++++++++++++++ .vscode/tasks.json | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json diff --git a/.gitignore b/.gitignore index 0b2bc2e..070602e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ .DS_Store -.vscode .phpunit.cache .vs/ /vendor/ diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6f46d60 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,33 @@ +{ + "intelephense.telemetry.enabled": false, + "intelephense.diagnostics.undefinedFunctions": false, + "triggerTaskOnSave.restart": true, + "triggerTaskOnSave.selectedTask": "lint-fix", + "triggerTaskOnSave.showNotifications": true, + "triggerTaskOnSave.showStatusBarToggle": true, + "triggerTaskOnSave.tasks": { + "lint-fix": ["{src,tests}/**/*.php"] + }, + "prettier.enable": false, + "eslint.enable": false, + "editor.detectIndentation": true, + "[php]": { + "editor.formatOnSave": false, + "editor.detectIndentation": false, + "editor.indentSize": 4 + }, + "[json]": { + "editor.quickSuggestions": { + "strings": true + }, + "editor.suggest.insertMode": "replace", + "editor.formatOnSave": true + }, + "[xml]": { + "editor.formatOnSave": true + }, + "[yml]": { + "editor.formatOnSave": true + }, +"editor.indentSize": "tabSize", +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..c5f7147 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,39 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "lint-fix", + "type": "process", + "presentation": { + "echo": true, + "reveal": "never", + "focus": false, + "panel": "shared", + "showReuseMessage": false, + "clear": true + }, + "command": "composer", + "args": [ + "lint-fix" + ] + }, + { + "label": "check", + "type": "process", + "presentation": { + "echo": true, + "reveal": "never", + "focus": false, + "panel": "shared", + "showReuseMessage": false, + "clear": true + }, + "command": "composer", + "args": [ + "check" + ] + } + ] +} \ No newline at end of file