refactor: Format root-level files (#3858)

*  Create `format.mjs` script

* 👕 Add lint exception

*  Add root formatting to `format` command

* 🎨 Fix glob in `.prettierignore`

* 🚚 Improve naming

* 🎨 Format root-level files

*  Simplify check

*  Add period to extension

*  Locate config

*  Add `ignore` arg

* 🚚 Move `config` and `ignore` after check
This commit is contained in:
Iván Ovejero
2022-08-19 15:34:02 +02:00
committed by GitHub
parent c65458c154
commit 11617616cd
23 changed files with 342 additions and 390 deletions

8
.vscode/DEBUGGER.md vendored
View File

@@ -26,13 +26,13 @@ In order to make this process easier you can simply run `npm run watch` in anoth
Docker debugging is currently not functional. We offer 2 other methods:
1) Launch n8n from inside VSCode:
1. Launch n8n from inside VSCode:
From the "Run and Debug" section in VSCode you can choose the option named "Launch n8n with debug".
This will start n8n to run as normal, but with debugger attached.
2) Another possibility is if n8n is already running, say, in your terminal.
This will start n8n to run as normal, but with debugger attached.
2. Another possibility is if n8n is already running, say, in your terminal.
You can attach the debugger to it.
This is done by choosing the option "Attach to running n8n".
VSCode will present you with a prompt to select the n8n process. It usually is displayed with `node ./n8n`
VSCode will present you with a prompt to select the n8n process. It usually is displayed with `node ./n8n`
## What can be debugged?

8
.vscode/launch.json vendored
View File

@@ -8,18 +8,14 @@
"name": "Attach to running n8n",
"processId": "${command:PickProcess}",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"skipFiles": ["<node_internals>/**"],
"type": "node"
},
{
"name": "Launch n8n with debug",
"program": "${workspaceFolder}/packages/cli/bin/n8n",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"skipFiles": ["<node_internals>/**"],
"type": "node",
"env": {
// "N8N_PORT": "5679",