Registry / devops / prettier-config-freee

prettier-config-freee

JSON →
library2.0.0jsnpmunverified

Shared Prettier configuration used by freee. Provides a standard set of formatting rules for consistent code style across projects. Current stable version is 2.0.0. Release cadence is low; versions are updated with breaking changes or rule additions. Key differentiator: opinionated rules tailored to freee's coding standards.

npm install prettier-config-freee
INSTALL
IMPORT
SIG · PRETTIER-CONFIG-FR
P
prettier-config-freee
devopsjavascriptv2.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

prettier-config-freee
"prettier": "prettier-config-freee" in package.json
require('prettier-config-freee') or import from pkg
This is a shareable config; used via package.json 'prettier' key or .prettierrc string, not via require/import.
prettier-config-freee
echo 'prettier-config-freee' > .prettierrc
npm install -g prettier-config-freee
Config is specified in .prettierrc as a string; global install not needed.
prettier-config-freee
module.exports = require('prettier-config-freee') // in .prettierrc.js
import config from 'prettier-config-freee' // only works in ESM context
In .prettierrc.js you can require it; ESM import works if package is type module.

Shows how to install and configure prettier with freee's shareable config.

// 1. Install npm install prettier prettier-config-freee -D -E // 2. Add to package.json "prettier": "prettier-config-freee" // 3. (Alternative) Create .prettierrc: echo 'prettier-config-freee' > .prettierrc // 4. Format code npx prettier --write .
Debug
Known issues
breakingv2.0.0 removed trailingComma option
fix
If you relied on trailingComma set to 'es5', note it's now the default in Prettier 2.0+. Otherwise, set it explicitly.
affects: >=2.0.0
deprecatedv1.x used trailingComma: 'es5', which is now redundant
fix
Upgrade to v2.0.0 or keep v1.x if you need explicit trailingComma.
affects: >=1.0.0 <2.0.0
gotchaConfig only works when Prettier is installed and version compatible
fix
Ensure prettier is installed as a devDependency. Check that Prettier version is 2.0+ for v2 config.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'prettier-config-freee'
Missing dependency: prettier-config-freee is not installed or not in node_modules.
fix
Run npm install prettier-config-freee -D -E or yarn add prettier-config-freee -D -E
Invalid configuration file: ".prettierrc" - expected a string or object, got array
Incorrect format in .prettierrc; should contain a JSON string or object referencing the config.
fix
Set .prettierrc to "prettier-config-freee" (string) or { ... } with extends.
Upgrade
Version history
2.0.0latest on npm
Audit
Dependencies
prettierrequiredPeer dependency: requires Prettier to be installed to apply the configuration.
Agent activity
5 hits · last 30 days
node
5
Resources
prettier-config-freee — npm install prettier-config-freee · libregistry