Prettier-standard is a CLI tool that combines prettierx (a prettier fork) for code formatting with eslint preconfigured with the standard ruleset. Current version 16.4.1 (requires Node >=8) wraps prettierx and eslint to format and optionally lint JavaScript/TypeScript/CSS files. It simplifies setup by eliminating separate eslint config for whitespace, and provides flags like --staged, --changed, --since for git-aware formatting. Since v9.0.0, it uses .prettierrc for config instead of .eslintrc, and v12.0.0 was a complete rewrite without spawning subprocesses, improving speed. It is well-suited for teams wanting standard-compliant code with minimal configuration, but note that it uses prettierx, not upstream prettier, and may have slight formatting differences.
npm install prettier-standardVerified import paths — ran on the pinned version, not inferred.
Shows typical CLI usage: global/local install, formatting with linting, staged files, and git-aware formatting.
If you relied on standard --fix behavior, you may need to check formatting differences. Custom configuration now goes in .prettierrc, not .eslintrc.
Move any eslint-based formatting config to .prettierrc. Extend 'prettier' and 'prettier/standard' in .eslintrc for linting.
Avoid using --lines if possible. Use --changed or --staged instead.
If you need exact prettier formatting, use prettier directly and configure eslint separately.
Run 'npm install prettier-standard' or 'yarn add prettier-standard' (devDependency).
Install globally: 'npm install -g prettier-standard', or use npx: 'npx prettier-standard'.
Ensure the file has a recognized extension (.js, .jsx, .ts, .tsx, .css, etc.) or use --parser flag.
No dependency data recorded yet.