Rules Overview
Pickier provides a small set of core rules and a growing set of plugin rules. Core rules are configured under rules. Plugin rules are configured under pluginRules.
You can explore the rule implementations directly in the codebase:
- Core and plugin checks live in
packages/pickier/src/cli/run-lint.ts. - Formatter-related helpers (imports, spacing) live in
packages/pickier/src/format.ts.
Core:
noDebuggernoConsolenoCondAssign(optional)noTemplateCurlyInString(optional)regexp/noUnusedCapturingGroup(optional)
Plugin:
max-statements-per-lineno-super-linear-backtrackingno-unused-varsprefer-constsort-array-includessort-classessort-enumssort-exportssort-heritage-clausessort-importssort-interfacessort-keyssort-mapssort-named-importssort-object-typessort-objectsts/no-require-imports
Groups:
pickier: sorting and hygiene rulesstyle: stylistic constraintsregexp: regex safety checksts: TypeScript-specific rules
See Advanced » Plugin System for configuration details.
Best practices
- Start new rules at
warnto gauge noise, then tighten toerrorwhere appropriate - Prefer bare rule IDs in config (e.g.,
'sort-imports'), leverage category prefixes for discoverability (e.g.,'regexp/no-super-linear-backtracking') - Keep sorting rules (
sort-objects,sort-keys,sort-exports,sort-imports) enabled to reduce merge conflicts and diff noise - Pair rules with the formatter for auto-fixes where supported
- Use group pages —
pickier,style,regexp— to navigate related options and examples