-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Overrides not applied to dotfiles #6193
Copy link
Copy link
Labels
area:apiIssues with Prettier's Application Programming InterfaceIssues with Prettier's Application Programming Interfacelocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Metadata
Metadata
Assignees
Labels
area:apiIssues with Prettier's Application Programming InterfaceIssues with Prettier's Application Programming Interfacelocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Environments:
Steps to reproduce:
.prettierrc.json
{ "tabWidth": 4, "printWidth": 120, "semi": false, "trailingComma": "es5", "singleQuote": true, "overrides": [ { "files": "*.json", "options": { "tabWidth": 2 } } ] }I also tried with
**/*.json,**.json,**/*.*.json,*.*.json.Expected behavior:
prettier .prettierrc.json --writeshould format the file with 2 spaces.Actual behavior:
It formats the filee with 4 spaces.
Logs:
Note how
tabWidth: 4is used.