Skip to content

Commit

Permalink
chore: run prettier for docs (#1007)
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi authored Jun 14, 2022
1 parent e85bd2b commit 2b698fb
Show file tree
Hide file tree
Showing 8 changed files with 378 additions and 561 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/lint-and-type.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- run: yarn install --frozen-lockfile --check-files
- run: cd examples && yarn install --frozen-lockfile --check-files
- name: Prettier
run: yarn prettier:ci
- name: Lint
run: yarn eslint:ci
- name: Type
Expand Down
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

308 changes: 169 additions & 139 deletions docs/typescript.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/v4-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ If you're not passing any type parameters to `useStore` then there is no migrati

## `UseBoundStore` (from `zustand` and `zustand/react`)

### Change
### Change

```diff
- type UseBoundStore<
Expand Down
11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,16 @@
"build:shallow": "rollup -c --config-shallow",
"build:context": "rollup -c --config-context",
"postbuild": "yarn copy",
"prettier": "prettier '*.{js,json,md}' '{src,tests,docs}/**/*.{ts,tsx,md,mdx}' --write",
"prettier:ci": "prettier '*.{js,json,md}' '{src,tests,docs}/**/*.{ts,tsx,md,mdx}' --list-different",
"eslint": "eslint --fix '*.{js,json}' '{src,tests}/**/*.{ts,tsx}'",
"eslint:ci": "eslint '*.{js,json}' '{src,tests}/**/*.{ts,tsx}'",
"pretest": "tsc --noEmit",
"test": "jest",
"test:ci": "jest",
"test:dev": "jest --watch --no-coverage",
"test:coverage:watch": "jest --watch",
"copy": "shx cp -r dist/src/* dist/esm && shx cp -r dist/src/* dist && shx rm -rf dist/src && shx rm -rf dist/{src,tests} && downlevel-dts dist dist/ts3.4 && shx cp package.json readme.md LICENSE dist && json -I -f dist/package.json -e \"this.private=false; this.devDependencies=undefined; this.optionalDependencies=undefined; this.scripts=undefined; this.prettier=undefined; this.jest=undefined; this['lint-staged']=undefined;\""
"copy": "shx cp -r dist/src/* dist/esm && shx cp -r dist/src/* dist && shx rm -rf dist/src && shx rm -rf dist/{src,tests} && downlevel-dts dist dist/ts3.4 && shx cp package.json readme.md LICENSE dist && json -I -f dist/package.json -e \"this.private=false; this.devDependencies=undefined; this.optionalDependencies=undefined; this.scripts=undefined; this.prettier=undefined; this.jest=undefined;\""
},
"engines": {
"node": ">=12.7.0"
Expand All @@ -88,11 +90,6 @@
"tabWidth": 2,
"printWidth": 80
},
"lint-staged": {
"*.{js,ts,tsx}": [
"prettier --write"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/pmndrs/zustand.git"
Expand Down Expand Up @@ -183,12 +180,10 @@
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.5.0",
"husky": "^7.0.4",
"immer": "^9.0.12",
"jest": "^28.0.3",
"jest-environment-jsdom": "^28.0.2",
"json": "^11.0.0",
"lint-staged": "^12.4.1",
"prettier": "^2.6.2",
"react": "^18.1.0",
"react-dom": "^18.1.0",
Expand Down
Loading

0 comments on commit 2b698fb

Please sign in to comment.