Registry / testing / oberon-prettier-config

oberon-prettier-config

JSON →
library1.0.0jsnpmunverified

Oberon's standard Prettier configuration, version 1.0.0. It is a simple, shared configuration for Prettier that enforces a consistent code style across projects. The package is stable and follows Semantic Versioning. It is intended to be used as an extendable config in package.json, offering an opinionated but minimal setup. Unlike other shareable configs like @company/prettier-config, it focuses on simplicity and integration with Oberon's ecosystem.

npm install oberon-prettier-config
INSTALL
IMPORT
SIG · OBERON-PRETTIER-CO
O
oberon-prettier-config
testingjavascriptv1.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.

default config
"prettier": "oberon-prettier-config" in package.json
import config from 'oberon-prettier-config'
This package is not a JavaScript module; it is used as a string reference in package.json.
prettier.config.js
module.exports = "oberon-prettier-config";
module.exports = require('oberon-prettier-config');
The correct pattern is to export the string directly, not require the package.
Prettier config object
const config = require('oberon-prettier-config');
import config from 'oberon-prettier-config';
Although not recommended, if you must load the config programmatically, use require() in CommonJS. ESM import is not supported.

Install Prettier and the shared config, then set the prettier field in package.json.

npm install -D prettier oberon-prettier-config # Add to package.json: # "prettier": "oberon-prettier-config"
Debug
Known issues
gotchaThe config must be referenced as a string, not a JavaScript import.
fix
Set "prettier": "oberon-prettier-config" in package.json.
affects: >=1.0.0
gotchaPrettier peer dependency may not be installed automatically with older npm versions.
fix
Ensure prettier is installed separately: npm install -D prettier.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'oberon-prettier-config'
Trying to require or import the package in a config file that expects a JavaScript object.
fix
Use the string reference in package.json or export the string from prettier.config.js.
Configuration for 'prettier' not found
Prettier version mismatch or wrong config path.
fix
Prettier 2.0+ uses the "prettier" field in package.json or .prettierrc. Ensure oberon-prettier-config is installed.
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
prettierrequiredPeer dependency required as the config is meant for Prettier.
Agent activity
4 hits · last 30 days
node
4
Resources
oberon-prettier-config — npm install oberon-prettier-config · libregistry