prettier-config-wantedly

raw JSON →
3.2.2 verified Sat Apr 25 auth: no javascript

Prettier configuration preset from Wantedly, currently at version 3.2.2. It is updated as part of the frolint monorepo, but the package itself sees infrequent changes. It provides a shared Prettier config for Wantedly projects, enabling consistent code formatting. Compared to other presets like @shopify/prettier-config or @justeat/prettier-config, it is specific to Wantedly's internal standards and is used alongside their ESLint configurations. The package is stable and intended for internal use, not widely adopted outside Wantedly.

error Error: Cannot find module 'prettier-config-wantedly'
cause Missing or incorrect install; or running in a monorepo without hoisting
fix
Ensure package is installed: npm install --save-dev prettier-config-wantedly
error Invalid configuration file: "prettier-config-wantedly"
cause Using string reference in .prettierrc.js instead of .prettierrc JSON
fix
Use module.exports = 'prettier-config-wantedly'; in .prettierrc.js
gotcha The package exports a plain object; if you use it in .prettierrc (JSON), you must use a string reference like "prettier-config-wantedly"
fix In .prettierrc JSON: { "prettier": "prettier-config-wantedly" }
gotcha If you extend the config using spread, ensure the spread is at the top level of your config object.
fix module.exports = { ...require('prettier-config-wantedly'), yourOverrides }
deprecated This package is deprecated in favor of using frolint's built-in formatting; prefer frolint for consistent ESLint + Prettier integration.
fix Use frolint instead: npm install frolint --save-dev and configure via frolint.config.js
npm install prettier-config-wantedly
yarn add prettier-config-wantedly
pnpm add prettier-config-wantedly

Install the package, extend the config in a JS file, and run Prettier.

// 1. Install
// npm install --save-dev prettier prettier-config-wantedly

// 2. Create .prettierrc.js
module.exports = {
  ...require('prettier-config-wantedly'),
  tabWidth: 4
};

// 3. Run prettier
// npx prettier --check src/
// or with frolint: npx frolint --fix src/