Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Zamiell committed Feb 23, 2024
1 parent 5e0144d commit 3d97d19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ pull.rebase=true
# https://github.com/github/linguist/blob/master/lib/linguist/languages.yml
.vscode/*.json linguist-language=JSON-with-Comments
tsconfig*.json linguist-language=JSON-with-Comments

# Suppress displaying changes on certain files to prevent cluttering commit diffs on GitHub.
package-lock.json linguist-generated=true
yarn.lock linguist-generated=true
pnpm-lock.yaml linguist-generated=true
13 changes: 3 additions & 10 deletions prettier.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,11 @@ const config = {
],

overrides: [
// Allow proper formatting of JSONC files:
// https://github.com/prettier/prettier/issues/5708
// Allow proper formatting of JSONC files that have JSON file extensions.
{
files: [
"**/*.jsonc",
"**/.vscode/*.json",
"**/tsconfig.json",
"**/tsconfig.*.json",
],
files: ["**/.vscode/*.json", "**/tsconfig.json", "**/tsconfig.*.json"],
options: {
parser: "json5",
quoteProps: "preserve",
parser: "jsonc",
},
},
],
Expand Down

0 comments on commit 3d97d19

Please sign in to comment.