Skip to content

Commit 1bd43f2

Browse files
committed
move prettier config to dedicated file
1 parent 9976c4a commit 1bd43f2

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
/node_modules
2+
/tsconfig.json
3+
/package-lock.json
4+
/package.json
25
/LICENSE.md
36
/example
47
/.github

.prettierrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"experimentalTernaries": true,
3+
"semi": false,
4+
"printWidth": 75,
5+
"tabWidth": 2,
6+
"useTabs": false,
7+
"singleQuote": true,
8+
"jsxSingleQuote": false,
9+
"bracketSameLine": true,
10+
"arrowParens": "avoid",
11+
"endOfLine": "lf"
12+
}

package.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@
5252
"test/run.cjs"
5353
]
5454
},
55-
"prettier": {
56-
"semi": false,
57-
"printWidth": 80,
58-
"tabWidth": 2,
59-
"useTabs": false,
60-
"singleQuote": true,
61-
"jsxSingleQuote": false,
62-
"bracketSameLine": true,
63-
"arrowParens": "avoid",
64-
"endOfLine": "lf"
65-
},
6655
"repository": {
6756
"type": "git",
6857
"url": "git://github.com/tapjs/async-hook-domain.git"

0 commit comments

Comments
 (0)