镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Commit 77e720f

Browse files
committed
chore: wip
1 parent 4d12814 commit 77e720f

20 files changed

Lines changed: 208 additions & 917 deletions

‎CLAUDE.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ pickier format . --write
103103
- Semicolon removal: safely removes stylistic semicolons while preserving for-loop headers
104104
- Quote normalization: enforces single/double quotes in code (respects JSON double-quote requirement)
105105

106-
5.**Plugin System (`src/plugins/`)**-**Core Plugins**: `pickier`, `style`, `regexp`, `ts`, `markdown`- Each plugin exports a`PickierPlugin`with`name`and`rules`Record
106+
5.**Plugin System (`src/plugins/`)**-**Core Plugins**: `pickier`, `style`, `regexp`, `ts`, `markdown`, `publint`- Each plugin exports a`PickierPlugin`with`name`and`rules`Record
107107

108108
- Rules implement`RuleModule`interface:`check(content, context) => LintIssue[]`and optional`fix(content, context) => string`- Configuration via`pluginRules` in config, supporting both full IDs (`plugin/rule`) and bare rule names
109109
- Rules can be marked as WIP (`meta.wip = true`) to surface implementation errors early

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
- 27 rules support auto-fix for common formatting issues
2121
- Flexible formatting: `indent`, `indentStyle` _(tabs or spaces)_, `quotes`, `semi`, `trimTrailingWhitespace`, `maxConsecutiveBlankLines`, `finalNewline`
2222
- Smart whitespace cleanup
23+
- **Package.json validation with 20 publint rules** for correct npm publishing _(exports ordering, file format, module system, etc.)_
2324
- ESLint-style plugin system for lint rules _(load plugins, enable/disable rules, WIP labeling)_
2425
- CI-friendly reporters _(stylish, compact, JSON)_ and strict `--max-warnings` control
2526
- Programmatic API for custom tooling and editor integrations
@@ -182,6 +183,7 @@ Pickier supports an ESLint-style plugin system for lint rules organized into foc
182183
| `ts/` | TypeScript-specific rules (type safety, formatting) | 13+ |
183184
| `regexp/` | Regular expression safety | 3+ |
184185
| `markdown/` | Markdown documentation linting | 53+ |
186+
| `publint/` | Package.json validation for npm publishing ([publint](https://publint.dev) rules) | 20 |
185187
| `lockfile/` | Lock file validation | 5+ |
186188

187189
Configure rules via `pluginRules`:

‎docs/.vitepress/components.d.ts‎

Lines changed: 0 additions & 17 deletions
This file was deleted.

‎docs/.vitepress/config.ts‎

Lines changed: 0 additions & 307 deletions
This file was deleted.

0 commit comments

Comments
 (0)