Skip to content

Commit 4c6930e

Browse files
committed
consistent prettier setting
1 parent f29fceb commit 4c6930e

File tree

12 files changed

+211
-373
lines changed

12 files changed

+211
-373
lines changed

.prettierignore

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
/node_modules
2-
/docs
3-
/.tap
4-
/*.json
2+
/tsconfig.json
3+
/package-lock.json
4+
/package.json
5+
/LICENSE.md
56
/example
67
/.github
78
/dist
9+
/.env
810
/tap-snapshots
11+
/.nyc_output
12+
/coverage
913
/benchmark
14+
/.tap
15+
/test/fixture
16+
/test/fixtures
1017
/.tshy
18+
/docs

.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+
}

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,7 @@ const options = {
7979

8080
// async method to use for cache.fetch(), for
8181
// stale-while-revalidate type of behavior
82-
fetchMethod: async (
83-
key,
84-
staleValue,
85-
{ options, signal, context },
86-
) => {},
82+
fetchMethod: async (key, staleValue, { options, signal, context }) => {},
8783
}
8884

8985
const cache = new LRUCache(options)

package.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,6 @@
6666
"engines": {
6767
"node": "20 || >=22"
6868
},
69-
"prettier": {
70-
"experimentalTernaries": true,
71-
"semi": false,
72-
"printWidth": 70,
73-
"tabWidth": 2,
74-
"useTabs": false,
75-
"singleQuote": true,
76-
"jsxSingleQuote": false,
77-
"bracketSameLine": true,
78-
"arrowParens": "avoid",
79-
"endOfLine": "lf"
80-
},
8169
"tap": {
8270
"node-arg": [
8371
"--expose-gc"

0 commit comments

Comments
 (0)