mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
Chore/enhance prettier config (#3022)
* chore: enhance prettier config * chore: fix prettier issues * Update package.json --------- Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
This commit is contained in:
parent
6a6ef4ceaa
commit
90f45eb076
2
.github/DISCUSSION_TEMPLATE/bug-report.yml
vendored
2
.github/DISCUSSION_TEMPLATE/bug-report.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
labels: ["bug"]
|
labels: ['bug']
|
||||||
body:
|
body:
|
||||||
- type: markdown
|
- type: markdown
|
||||||
attributes:
|
attributes:
|
||||||
|
|||||||
5
.github/FUNDING.yml
vendored
5
.github/FUNDING.yml
vendored
@ -10,4 +10,7 @@ liberapay: # Replace with a single Liberapay username
|
|||||||
issuehunt: # Replace with a single IssueHunt username
|
issuehunt: # Replace with a single IssueHunt username
|
||||||
otechie: # Replace with a single Otechie username
|
otechie: # Replace with a single Otechie username
|
||||||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
||||||
custom: ['https://daishi.gumroad.com/l/uaxms', 'https://daishi.gumroad.com/l/learn-zustand-v4'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
custom: [
|
||||||
|
'https://daishi.gumroad.com/l/uaxms',
|
||||||
|
'https://daishi.gumroad.com/l/learn-zustand-v4',
|
||||||
|
] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
||||||
|
|||||||
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@ -4,6 +4,4 @@ about: This is to create a new issue that already has an assignee. Please open a
|
|||||||
title: ''
|
title: ''
|
||||||
labels: ''
|
labels: ''
|
||||||
assignees: ''
|
assignees: ''
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
2
.github/pull_request_template.md
vendored
2
.github/pull_request_template.md
vendored
@ -4,8 +4,6 @@ Fixes #
|
|||||||
|
|
||||||
## Summary
|
## Summary
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Check List
|
## Check List
|
||||||
|
|
||||||
- [ ] `pnpm run fix` for formatting and linting code and docs
|
- [ ] `pnpm run fix` for formatting and linting code and docs
|
||||||
|
|||||||
2
.prettierignore
Normal file
2
.prettierignore
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
dist
|
||||||
|
pnpm-lock.yaml
|
||||||
@ -1,11 +1,14 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="icon" href="/favicon.ico" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<meta name="theme-color" content="#000000" />
|
<meta name="theme-color" content="#000000" />
|
||||||
<meta name="description" content="🐻 Bear necessities for state management in React" />
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="🐻 Bear necessities for state management in React"
|
||||||
|
/>
|
||||||
<link rel="apple-touch-icon" href="/logo192.png" />
|
<link rel="apple-touch-icon" href="/logo192.png" />
|
||||||
<meta name="og:image" content="/ogimage.jpg" />
|
<meta name="og:image" content="/ogimage.jpg" />
|
||||||
<link rel="manifest" href="/manifest.json" />
|
<link rel="manifest" href="/manifest.json" />
|
||||||
|
|||||||
@ -19,7 +19,18 @@ body,
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial,
|
font-family:
|
||||||
|
-apple-system,
|
||||||
|
BlinkMacSystemFont,
|
||||||
|
avenir next,
|
||||||
|
avenir,
|
||||||
|
helvetica neue,
|
||||||
|
helvetica,
|
||||||
|
ubuntu,
|
||||||
|
roboto,
|
||||||
|
noto,
|
||||||
|
segoe ui,
|
||||||
|
arial,
|
||||||
sans-serif;
|
sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,7 +121,18 @@ span.header-left {
|
|||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial,
|
font-family:
|
||||||
|
-apple-system,
|
||||||
|
BlinkMacSystemFont,
|
||||||
|
avenir next,
|
||||||
|
avenir,
|
||||||
|
helvetica neue,
|
||||||
|
helvetica,
|
||||||
|
ubuntu,
|
||||||
|
roboto,
|
||||||
|
noto,
|
||||||
|
segoe ui,
|
||||||
|
arial,
|
||||||
sans-serif;
|
sans-serif;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
|
|||||||
@ -19,4 +19,3 @@
|
|||||||
"include": ["vite.config.ts", "./src/**/*"],
|
"include": ["vite.config.ts", "./src/**/*"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -65,10 +65,10 @@
|
|||||||
"build:traditional": "rollup -c --config-traditional",
|
"build:traditional": "rollup -c --config-traditional",
|
||||||
"postbuild": "pnpm run patch-d-ts && pnpm run copy && pnpm run patch-old-ts && pnpm run patch-esm-ts",
|
"postbuild": "pnpm run patch-d-ts && pnpm run copy && pnpm run patch-old-ts && pnpm run patch-esm-ts",
|
||||||
"fix": "pnpm run fix:lint && pnpm run fix:format",
|
"fix": "pnpm run fix:lint && pnpm run fix:format",
|
||||||
"fix:format": "prettier \"*.{js,json,md}\" \"{examples,src,tests,docs}/**/*.{js,jsx,ts,tsx,md,mdx}\" --write",
|
"fix:format": "prettier . --write",
|
||||||
"fix:lint": "eslint . --fix",
|
"fix:lint": "eslint . --fix",
|
||||||
"test": "pnpm run \"/^test:.*/\"",
|
"test": "pnpm run \"/^test:.*/\"",
|
||||||
"test:format": "prettier \"*.{js,json,md}\" \"{examples,src,tests,docs}/**/*.{js,jsx,ts,tsx,md,mdx}\" --list-different",
|
"test:format": "prettier . --list-different",
|
||||||
"test:types": "tsc --noEmit",
|
"test:types": "tsc --noEmit",
|
||||||
"test:lint": "eslint .",
|
"test:lint": "eslint .",
|
||||||
"test:spec": "vitest run",
|
"test:spec": "vitest run",
|
||||||
|
|||||||
@ -16,7 +16,9 @@ export default defineConfig({
|
|||||||
globals: true,
|
globals: true,
|
||||||
environment: 'jsdom',
|
environment: 'jsdom',
|
||||||
dir: 'tests',
|
dir: 'tests',
|
||||||
reporters: process.env.GITHUB_ACTIONS ? ['default', 'github-actions'] : ['default'],
|
reporters: process.env.GITHUB_ACTIONS
|
||||||
|
? ['default', 'github-actions']
|
||||||
|
: ['default'],
|
||||||
setupFiles: ['tests/setup.ts'],
|
setupFiles: ['tests/setup.ts'],
|
||||||
coverage: {
|
coverage: {
|
||||||
include: ['src/**/'],
|
include: ['src/**/'],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user