{"library":"prettier-standard","title":"prettier-standard","description":"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.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-standard"],"cli":{"name":"prettier-standard","version":null}},"imports":["import prettierStandard from 'prettier-standard'","import { run } from 'prettier-standard'","import { formatFiles } from 'prettier-standard'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Install globally or locally\nnpm install -g prettier-standard\n\n// Format all files in project and lint\nprettier-standard --lint\n\n// Format only staged files (for precommit hooks)\nprettier-standard --staged\n\n// Format changed lines since master\nprettier-standard --changed --since master\n\n// Use as a lint-staged step in package.json\n\"lint-staged\": {\n  \"*.{js,jsx,ts,tsx,css}\": [\"prettier-standard --lint\"]\n}","lang":"javascript","description":"Shows typical CLI usage: global/local install, formatting with linting, staged files, and git-aware formatting.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}