LANDR's shareable Prettier configuration. Version 1.3.0 is the current release. It requires Prettier >=3.3 as a peer dependency. The package is used to enforce consistent code formatting across LANDR projects. It supports CommonJS require and can be extended or overridden via spread in .prettierrc.js. Configuration is exported as a plain object. The package follows a semver release cadence with occasional breaking changes when upgrading dependencies. It is not a standalone formatter but a config extension for Prettier.
npm install prettier-config-landrVerified import paths — ran on the pinned version, not inferred.
Shows how to install the package and set it as the entire Prettier config.
Use require() or configure a CJS-compatible import.
Use const config = require('prettier-config-landr');Review changelog for dependency version bumps that may alter behavior.
Always spread the entire defaultConfig, then override specific keys.
Run npm install prettier prettier-config-landr --save-dev
Use require() instead of import.