Prettier shareable config for W.W. Norton & Company. Version 1.2.2 is the latest stable release. The package is part of a monorepo of style configs for Norton code style. It aligns with Airbnb style guides but overrides defaults: print width 100, tabs over spaces, single quotes, always arrow parens, trailing commas all. Requires Prettier ^2.0.0 as a peer dependency. Alternative to @company/prettier-config or prettier-config-standard, opinionated for Norton projects. Low release cadence, last updated March 2022.
npm install prettier-config-nortonVerified import paths — ran on the pinned version, not inferred.
Installs prettier-config-norton and its peer dependency Prettier, sets the config in package.json, then checks formatting.
Use module.exports = { ...require('prettier-config-norton'), semi: false } in .prettierrc.js.Use Prettier v2.x with this config, or look for an updated version supporting v3.
Set config as string 'prettier-config-norton' in package.json or .prettierrc.
Run `npx install-peerdeps --dev prettier-config-norton` or install manually: `npm install --save-dev prettier-config-norton prettier`.
Upgrade Prettier to ^2.0.0.