-
-
Notifications
You must be signed in to change notification settings - Fork 951
formatter: Diff with Prettier on ignoring .git folder #20036
Copy link
Copy link
Labels
A-formatter-prettier-diffArea - Formatter difference with PrettierArea - Formatter difference with Prettier
Description
Config
Oxfmt version: 0.36.0
Prettier version: 3.8.1
// package.json
{
"private": true,
"type": "module",
"scripts": {
"fmt:oxfmt": "oxfmt \"**/*.{json,jsonc,yaml,md,css,js,ts,vue,html}\"",
"fmt:prettier": "prettier --write \"**/*.{json,jsonc,yaml,md,css,js,ts,vue,html}\""
},
"dependencies": {
// ...
},
"devDependencies": {
"oxfmt": "^0.36.0",
"prettier": "^3.8.1",
}
}Prettier playground link
No response
Additional notes
Create a git branch named update-package.json to reproduce.
Running oxfmt "**/*.{json,jsonc,yaml,md,css,js,ts,vue,html}" on Windows 11
The .git directory will be formatted, whereas prettier (prettier --write "**/*.{json,jsonc,yaml,md,css,js,ts,vue,html}") does not.

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-formatter-prettier-diffArea - Formatter difference with PrettierArea - Formatter difference with Prettier
Type
Fields
Give feedbackPriority
None yet
Effort
None yet
{ "$schema": "./node_modules/oxfmt/configuration_schema.json", "ignorePatterns": ["public/assets/**", ".git/**"], "overrides": [ { "files": ["**/*.jsonc"], "options": { "trailingComma": "none" } } ], "sortImports": {}, "sortPackageJson": { "sortScripts": true }, "sortTailwindcss": { "stylesheet": "./src/styles/mixins/tailwind.css" } }