Files
nocobase/.prettierignore
T

65 lines
4.0 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
node_modules/
dist/
# The `dist` command topic's sources; see the matching exception in .gitignore.
!packages/app/app-cli/src/commands/dist/
coverage/
test-results/
playwright-report/
.pack-check/
*.tgz
pnpm-lock.yaml
packages/app/app-host/fixtures/app-dist/**/dist/
packages/app/app-host/fixtures/app-dist/main/
packages/templates/app-template-default/client-old/
packages/templates/app-template-default/registry/
packages/tools/create-plugin/template/
# 文档站的这五个目录是从 @rspress/core 的 ejectable theme 逐字复制过来的,升级 rspress 时靠和上游同名文件
# 做 diff 来判断改了什么,格式化会把每个文件整体重写、让 diff 失去意义。docs/.prettierignore 里列的是同一批
# 路径——两份都要有:这份管从仓库根跑的 prettier(pre-commit hook、pnpm format:all),那份管在 docs/ 里跑的。
# docs 的其余文件用的是和全仓一样的 @nocobase/dev-config 预设,正常格式化。
docs/theme/components/Nav/
docs/theme/components/NavHamburger/
docs/theme/components/NavScreen/
docs/theme/components/Search/
docs/theme/components/HomeHero/
# Skills are prose written for agents to read, not source this repository's formatter should reflow. `.agents/skills/`
# and `.claude/skills/` hold symbolic links — into `skills/`, written by scripts/sync-skills.mjs here, and into
# `.agents/skills/` in an application, written by `nocobase skills sync` — so formatting through one would check the
# same file twice under two paths and write the result back into the committed source.
#
# The `**/` matters: an unanchored path matches only the repository root, and each template under packages/templates/
# has both directories of its own. `.gitignore` lists them too, but `--ignore-path` replaces `.gitignore` rather than
# adding to it, and both `pnpm format` and `pnpm format:all` pass it.
#
# The root `skills/` holds this repository's committed Skills, including those users install globally with
# `npx skills add`, and is prose for the same reason.
**/.agents/skills/
**/.claude/skills/
/skills/
# The shadcn/ui skill that the application development Skill embeds is upstream's files, copied unchanged from one shadcn
# release so that a shadcn upgrade replaces the directory wholesale and `diff` against the new release shows everything
# that changed. Formatting them would rewrite most of them and turn that diff into noise. packages/app/app-skills/
# .prettierignore lists the same path for `pnpm format:check` run inside that package; both are needed.
packages/app/app-skills/skills/nocobase-app-development/references/frontend/shadcn/
# The generated Collection artifacts an application keeps under `database/<connection>/collections/`: one JSON file
# per Collection plus a `_manifest.json`, written by `pnpm nocobase collections generate` through a stable serializer so that
# `pnpm nocobase collections generate --check` can regenerate them and compare byte for byte. Prettier collapses their short
# arrays and objects onto single lines, which makes that check report the artifacts as out of date when nothing about
# the schema changed. Each template names the same path in its own `.prettierignore`; a pattern containing a slash is
# anchored to the directory of the file it is written in, so reaching them from here needs the `**/`.
**/database/*/collections/
# Changeset files are written by `changeset add` or by hand and consumed by the changesets tool, which owns their
# format: the repository's `singleQuote` would rewrite `"@nocobase/core": minor` into a form changesets never writes.
# While the branch is in prerelease mode, `changeset version` moves each consumed changeset into `.changeset/pre/`
# unchanged, so that directory needs the same exception: `.changeset/*.md` matches only the top level, and a release
# commit renaming a double-quoted changeset into `pre/` otherwise fails the changed-files Prettier check of the next
# pull request whose diff happens to include it.
.changeset/*.md
.changeset/pre/
!.changeset/README.md