{"id":20305,"library":"prettier-config-norton","title":"prettier-config-norton","description":"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.","status":"active","version":"1.2.2","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/wwnorton/style","tags":["javascript","prettier","prettier-config"],"install":[{"cmd":"npm install prettier-config-norton","lang":"bash","label":"npm"},{"cmd":"yarn add prettier-config-norton","lang":"bash","label":"yarn"},{"cmd":"pnpm add prettier-config-norton","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required for configuration to work","package":"prettier","optional":false}],"imports":[{"note":"Prettier shareable configs can be specified as a string in package.json or .prettierrc. For extending, use spread: ...require('prettier-config-norton').","wrong":"module.exports = require('prettier-config-norton');","symbol":"prettier-config-norton","correct":"module.exports = 'prettier-config-norton';"},{"note":"Prettier config files in ESM still commonly use CommonJS exports, but with ESM config you can import and re-export.","wrong":"const config = require('prettier-config-norton'); module.exports = config;","symbol":"prettier-config-norton (ESM)","correct":"import config from 'prettier-config-norton'; export default config;"},{"note":"Prettier does not support 'extends'; you must spread the config object.","wrong":"module.exports = { extends: 'prettier-config-norton', semi: false };","symbol":"prettier-config-norton (extending)","correct":"module.exports = { ...require('prettier-config-norton'), semi: false };"}],"quickstart":{"code":"npx install-peerdeps --dev prettier-config-norton\necho '{\"prettier\": \"prettier-config-norton\"}' >> package.json\nnpx prettier --check .","lang":"javascript","description":"Installs prettier-config-norton and its peer dependency Prettier, sets the config in package.json, then checks formatting."},"warnings":[{"fix":"Use module.exports = { ...require('prettier-config-norton'), semi: false } in .prettierrc.js.","message":"Prettier does not support 'extends' like ESLint. You must spread the config object to override rules.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use Prettier v2.x with this config, or look for an updated version supporting v3.","message":"The package requires Prettier ^2.0.0 as a peer dependency. Prettier v3 is not compatible.","severity":"gotcha","affected_versions":"<=1.2.2"},{"fix":"Set config as string 'prettier-config-norton' in package.json or .prettierrc.","message":"Using require('prettier-config-norton') as the config value (instead of string) may cause issues depending on how Prettier resolves it.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run `npx install-peerdeps --dev prettier-config-norton` or install manually: `npm install --save-dev prettier-config-norton prettier`.","cause":"The package is not installed or not in node_modules.","error":"Cannot find module 'prettier-config-norton'"},{"fix":"Upgrade Prettier to ^2.0.0.","cause":"Using old Prettier version (<2.0.0) that does not support string config references.","error":"Invalid configuration: \"prettier-config-norton\" is not a valid configuration"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}