Skip to content

Commit 6602d70

Browse files
authored
chore: hanle .*rc as json files (#231)
1 parent a0381a0 commit 6602d70

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.prettierignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
.env-cmdrc
1+
.svelte-kit
2+
.type-coverage
3+
build
4+
lib

prettier.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,13 @@ module.exports = {
44
tabWidth: 2,
55
semi: false,
66
trailingComma: "all",
7+
overrides: [
8+
{
9+
files: [".*rc"],
10+
excludeFiles: [".browserslistrc", ".npmrc", ".nvmrc"],
11+
options: {
12+
parser: "json",
13+
},
14+
},
15+
],
716
}

0 commit comments

Comments
 (0)