{"id":20314,"library":"prettier-config-zillow","title":"prettier-config-zillow","description":"Zillow's base Prettier config following their code conventions. Version 1.3.0 requires Node >= 8.9.0. This package provides a shareable Prettier configuration for consistent formatting across Zillow projects. It is intended to be extended in your own .prettierrc file. The config is stable and follows Zillow's JavaScript style guide. Regular updates align with changes in Prettier itself.","status":"active","version":"1.3.0","language":"javascript","source_language":"en","source_url":"https://github.com/zillow/javascript","tags":["javascript","prettier","config","zillow"],"install":[{"cmd":"npm install prettier-config-zillow","lang":"bash","label":"npm"},{"cmd":"yarn add prettier-config-zillow","lang":"bash","label":"yarn"},{"cmd":"pnpm add prettier-config-zillow","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This package is a shareable config. Use it by referencing the package name in your Prettier config file under 'prettier' key or by requiring it in a JavaScript config file.","wrong":null,"symbol":"prettier-config-zillow","correct":"module.exports = require('prettier-config-zillow');\n// or in .prettierrc.json:\n\"prettier-config-zillow\""},{"note":"To override specific options, spread the config into a new object and override properties. Do not modify the package directly.","wrong":"// Using spread without require (false assumption you can import JSON)\n// Or mixing with other config objects incorrectly.","symbol":"override","correct":"// .prettierrc.js\nmodule.exports = {\n  ...require('prettier-config-zillow'),\n  semi: false\n};"}],"quickstart":{"code":"// 1. Install\nnpm install --save-dev prettier prettier-config-zillow\n\n// 2. Create .prettierrc.json in project root:\n\"prettier-config-zillow\"\n\n// 3. Alternatively, use .prettierrc.js for overrides:\nmodule.exports = {\n  ...require('prettier-config-zillow'),\n  singleQuote: true\n};","lang":"javascript","description":"Shows how to install and use prettier-config-zillow as a shareable Prettier config, including optional overrides."},"warnings":[{"fix":"Check for updates to prettier-config-zillow when upgrading Prettier, as rule options or defaults may change.","message":"This package likely doesn't update automatically with new Prettier versions.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use .prettierrc.js or .prettierrc.yaml to avoid JSON strictness.","message":"If you extend this config in a .prettierrc file, ensure the file is valid JSON (e.g., no trailing commas).","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Upgrade to Node >=10 or later for future compatibility.","message":"Node 8.9.0 support may eventually be dropped.","severity":"deprecated","affected_versions":"1.3.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run `npm install --save-dev prettier prettier-config-zillow` and ensure node_modules is not corrupted.","cause":"Missing or incorrectly installed package, or Prettier cannot resolve the config package.","error":"Cannot find module 'prettier-config-zillow'"},{"fix":"Make sure the file contains exactly a string: \"prettier-config-zillow\". No commas or extra syntax.","cause":"The .prettierrc.json file is not valid JSON.","error":"Invalid config: [Error] Cannot read config file: /path/to/.prettierrc.json Invalid JSON"},{"fix":"Run Prettier from the project root or specify a correct config path with --config.","cause":"Prettier is not running in the root of the project where the config is installed, or the package is not in node_modules.","error":"Error: Couldn't resolve config 'prettier-config-zillow' from the current working directory."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}