Shared Prettier configuration package by silverwind. Current stable version is 2.0.1, released irregularly, with peer dependency on Prettier. It provides a function-based API that automatically detects a project's TypeScript, JSX, and other file types to apply sensible defaults. Key differentiator: uses `import.meta.url` for configuration, enabling dynamic per-project overrides without manual file extension handling. Supports Node >=22 and ESM-only with TypeScript type definitions included.
npm install prettier-config-silverwindNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Prettier configuration file using the shared config. The function automatically detects project settings via import.meta.url.
Ensure your project uses ES modules (type: 'module' in package.json) and use import syntax instead of require().
Upgrade Node.js to version 22 or later.
Always pass {url: import.meta.url} to the function.Migrate to function syntax: import silverwind from 'prettier-config-silverwind' and call it with {url: import.meta.url}.Run npm install prettier-config-silverwind prettier --save-dev
Add 'type': 'module' to package.json or rename the config file to .prettierrc.mjs
Use default import: import silverwind from 'prettier-config-silverwind' instead of named import.