Skip to content

Commit 15ff06f

Browse files
committed
chore: add prettier
1 parent 5cfe07c commit 15ff06f

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules
2+
package.json
3+
package-lock.json
4+
pnpm-lock.yaml
5+
coverage
6+
changelog.md
7+
build
8+
dist

prettier.config.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Add to .prettierignore to ignore files and folders
2+
3+
// This configuration all the formats including typescript, javascript, json, yaml, markdown
4+
module.exports = {
5+
tabWidth: 2,
6+
printWidth: 120,
7+
semi: true, // changed to reduce code-diff
8+
singleQuote: true, // changed to reduce code-diff
9+
overrides: [
10+
{
11+
files: "{*.json}",
12+
options: {
13+
parser: "json",
14+
trailingComma: "es5",
15+
},
16+
},
17+
{
18+
files: "{*.md}",
19+
options: {
20+
parser: "markdown",
21+
proseWrap: "preserve",
22+
},
23+
},
24+
],
25+
}

0 commit comments

Comments
 (0)