CLI Reference
Pickier provides a single binary, pickier, with the following commands.
Commands
pickier lint [...globs]
Lint files.
Options:
--fix— auto-fix problems (removesdebuggerlines)--dry-run— simulate fixes without writing--max-warnings <n>— fail if warnings exceedn(default-1disables)--reporter <name>—stylish|json|compact(defaultstylish)--config <path>— path to Pickier config--ignore-path <file>— ignore file (gitignore-style)--ext <exts>— comma-separated extensions (defaults to your config; built-in:.ts,.js,.html,.css,.json,.jsonc,.md,.yaml,.yml,.stx)--cache— enable cache (reserved)--verbose— verbose output
Examples:
bash
pickier lint . --dry-run
pickier lint src --fix
pickier lint "src/**/*.ts" --reporter jsonpickier format [...globs]
Format files.
Options:
--write— write changes to files--check— check without writing--config <path>— path to Pickier config--ignore-path <file>— ignore file (gitignore-style)--ext <exts>— comma-separated extensions (defaults to your config; built-in:.ts,.js,.html,.css,.json,.jsonc,.md,.yaml,.yml,.stx)--verbose— verbose output
Examples:
bash
pickier format . --check
pickier format src --write
pickier format "**/*.{ts,js}" --writeNotes:
- When
--extis omitted, the CLI useslint.extensionsorformat.extensionsfrom your config. Built-in defaults are:.ts,.js,.html,.css,.json,.jsonc,.md,.yaml,.yml,.stx. To customize, pass--extor setextensionsin yourpickierconfig.
pickier version
Print the CLI version.
pickier (no command)
Shows help.