Skip to content

Commit 3f378c5

Browse files
committed
Upgrade Prettier
1 parent 4075007 commit 3f378c5

File tree

5 files changed

+8
-12
lines changed

5 files changed

+8
-12
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Setup environment with pnpm
1414
uses: danoc/pnpm-setup-composite-action@v2
1515
with:
16-
checkout-fetch-depth: '0'
16+
checkout-fetch-depth: "0"
1717
- name: Create release PR or publish to NPM
1818
uses: changesets/action@v1
1919
with:

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ dist
55
.git
66
.cache
77
coverage
8+
example/.next

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"test": "pnpm test:tslint && pnpm test:jest && pnpm test:prettier",
1717
"test:tslint": "tslint -c tslint.json --project tsconfig.json '**/*.{ts,tsx,js,jsx}'",
1818
"test:jest": "jest --coverage",
19-
"test:prettier": "prettier \"**/*.{ts,tsx,js,jsx,css,scss,json,md,mdx,html}\" --list-different",
20-
"format": "prettier \"**/*.{ts,tsx,js,jsx,css,scss,json,md,mdx,html}\" --write",
19+
"test:prettier": "prettier . --check",
20+
"format": "prettier . --write",
2121
"build": "pnpm microbundle",
2222
"release": "rm -rf dist && pnpm install --frozen-lockfile && pnpm test && pnpm build && pnpm changeset publish"
2323
},
@@ -33,7 +33,7 @@
3333
"@types/react-dom": "^16.9.9",
3434
"jest": "^26.6.1",
3535
"microbundle": "0.12.4",
36-
"prettier": "^2.2.1",
36+
"prettier": "^2.7.1",
3737
"react": "^17.0.1",
3838
"react-dom": "^17.0.1",
3939
"tslint": "^6.1.3",

pnpm-lock.yaml

Lines changed: 2 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)