diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index c8ff4249f47..da5e377b59c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,14 +3,7 @@ "image": "mcr.microsoft.com/devcontainers/go:1-bookworm", "customizations": { "vscode": { - "extensions": [ - "golang.go", - "GitHub.copilot-chat", - "GitHub.copilot", - "github.vscode-github-actions", - "astro-build.astro-vscode", - "DavidAnson.vscode-markdownlint" - ] + "extensions": ["golang.go", "GitHub.copilot-chat", "GitHub.copilot", "github.vscode-github-actions", "astro-build.astro-vscode", "DavidAnson.vscode-markdownlint"] }, "codespaces": { "repositories": { diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000000..012deb716c4 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,14 @@ +# Prettier ignore file for gh-aw + +# Package manager files (should not be reformatted) +package.json +package-lock.json + +# Build artifacts +node_modules/ +dist/ +build/ +*.min.js + +# Generated files +*.lock.yml diff --git a/actions/setup/js/package.json b/actions/setup/js/package.json index 3051835f78e..ec5d511c95c 100644 --- a/actions/setup/js/package.json +++ b/actions/setup/js/package.json @@ -25,7 +25,7 @@ "format:cjs": "npx prettier --write '**/*.cjs' '**/*.ts' '**/*.json'", "lint:cjs": "npx prettier --check '**/*.cjs' '**/*.ts' '**/*.json'", "format:schema": "npx prettier --write ../../../pkg/workflow/schemas/github-workflow.json --ignore-path /dev/null", - "format:pkg-json": "npx prettier --write '../../../**/*.json' '!../../../pkg/workflow/js/**/*.json' --ignore-path /dev/null", - "check:pkg-json": "npx prettier --check '../../../**/*.json' '!../../../pkg/workflow/js/**/*.json' --ignore-path /dev/null" + "format:pkg-json": "npx prettier --write '../../../**/*.json' '!../../../pkg/workflow/js/**/*.json' '!../../../**/package.json' '!../../../**/package-lock.json'", + "check:pkg-json": "npx prettier --check '../../../**/*.json' '!../../../pkg/workflow/js/**/*.json' '!../../../**/package.json' '!../../../**/package-lock.json'" } }