Registry / testing / prettier-config-zillow

prettier-config-zillow

JSON →
library1.3.0jsnpmunverified

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.

npm install prettier-config-zillow
INSTALL
IMPORT
SIG · PRETTIER-CONFIG-ZI
P
prettier-config-zillow
testingjavascriptv1.3.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

prettier-config-zillow
module.exports = require('prettier-config-zillow'); // or in .prettierrc.json: "prettier-config-zillow"
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.
override
// .prettierrc.js module.exports = { ...require('prettier-config-zillow'), semi: false };
// Using spread without require (false assumption you can import JSON) // Or mixing with other config objects incorrectly.
To override specific options, spread the config into a new object and override properties. Do not modify the package directly.

Shows how to install and use prettier-config-zillow as a shareable Prettier config, including optional overrides.

// 1. Install npm install --save-dev prettier prettier-config-zillow // 2. Create .prettierrc.json in project root: "prettier-config-zillow" // 3. Alternatively, use .prettierrc.js for overrides: module.exports = { ...require('prettier-config-zillow'), singleQuote: true };
Debug
Known issues
gotchaThis package likely doesn't update automatically with new Prettier versions.
fix
Check for updates to prettier-config-zillow when upgrading Prettier, as rule options or defaults may change.
affects: >=1.0.0
gotchaIf you extend this config in a .prettierrc file, ensure the file is valid JSON (e.g., no trailing commas).
fix
Use .prettierrc.js or .prettierrc.yaml to avoid JSON strictness.
affects: >=1.0.0
deprecatedNode 8.9.0 support may eventually be dropped.
fix
Upgrade to Node >=10 or later for future compatibility.
affects: 1.3.0
Errors
Common errors & fixes
Cannot find module 'prettier-config-zillow'
Missing or incorrectly installed package, or Prettier cannot resolve the config package.
fix
Run `npm install --save-dev prettier prettier-config-zillow` and ensure node_modules is not corrupted.
Invalid config: [Error] Cannot read config file: /path/to/.prettierrc.json Invalid JSON
The .prettierrc.json file is not valid JSON.
fix
Make sure the file contains exactly a string: "prettier-config-zillow". No commas or extra syntax.
Error: Couldn't resolve config 'prettier-config-zillow' from the current working directory.
Prettier is not running in the root of the project where the config is installed, or the package is not in node_modules.
fix
Run Prettier from the project root or specify a correct config path with --config.
Upgrade
Version history
1.3.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
prettier-config-zillow — npm install prettier-config-zillow · libregistry