Skip to content

Commit

Permalink
fix: Fix invalid JSON file with terms
Browse files Browse the repository at this point in the history
For some reason, Prettier started adding trailing commas to JSONC files, so adding an override for them.

Fixes #78
  • Loading branch information
sapegin committed Jul 29, 2024
1 parent 1c3f6dc commit 942153e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
29 changes: 17 additions & 12 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
{
"singleQuote": true,
"trailingComma": "es5",
"overrides": [
{
"files": "*.md",
"options": {
"printWidth": 70,
"trailingComma": "none",
"proseWrap": "never"
}
}
]
"singleQuote": true,
"overrides": [
{
"files": "*.jsonc",
"options": {
"trailingComma": "none"
}
},
{
"files": "*.md",
"options": {
"printWidth": 70,
"trailingComma": "none",
"proseWrap": "never"
}
}
]
}
2 changes: 1 addition & 1 deletion terms.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -288,5 +288,5 @@
["flackyness", "flakiness"],
["pacakge(s)?", "package$1"],
["tilda", "tilde"],
["falsey", "falsy"],
["falsey", "falsy"]
]

0 comments on commit 942153e

Please sign in to comment.