From a827ac75596e1705a77b52d97e2f498a0c1967bb Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Fri, 27 Dec 2024 11:17:49 +0000 Subject: [PATCH] chore(vscode): add stylua for luau formatting --- .vscode/extensions.json | 7 ++++++- .vscode/settings.json | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 0da040b..81a4f40 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,3 +1,8 @@ { - "recommendations": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint", "DavidAnson.vscode-markdownlint"] + "recommendations": [ + "esbenp.prettier-vscode", + "JohnnyMorganz.stylua", + "dbaeumer.vscode-eslint", + "DavidAnson.vscode-markdownlint" + ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index 779ad19..d2924e0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,9 @@ { "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode" + "[ts][jsonc][json][markdown]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[lua][luau]": { + "editor.defaultFormatter": "JohnnyMorganz.stylua" + } }