Registry / testing / geta-prettier-config

geta-prettier-config

JSON →
library1.0.0jsnpmunverified

Shared Prettier configuration used by Geta projects. This package provides a single default configuration object for Prettier, designed to be extended via package.json or a Prettier config file. Version 1.0.0 is the initial stable release with no updates since. It is a simple, opinionated config targeting consistent code style across Geta projects. Differentiator: a lightweight shareable config without peer dependencies, relying on the consumer to install Prettier.

npm install geta-prettier-config
INSTALL
IMPORT
SIG · GETA-PRETTIER-CONF
G
geta-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.

geta-prettier-config (default)
In package.json: "prettier": "geta-prettier-config"
In package.json: "prettier": "./node_modules/geta-prettier-config"
Prettier resolves the package name automatically; no need for a full path.
require (CommonJS)
const config = require('geta-prettier-config');
const config = require('geta-prettier-config').default;
The package exports a plain object, not a default export. No .default needed.
import (ESM)
import config from 'geta-prettier-config';
import { config } from 'geta-prettier-config';
The package uses module.exports = {...}, so default import works in ESM. Named import would fail.
prettier.config.js / .prettierrc.js
module.exports = require('geta-prettier-config');
module.exports = { ...require('geta-prettier-config') }; // or module.exports = getaPrettierConfig;
Simply re-export the required object; spreading or renaming is unnecessary.

Install and use the shared Prettier config by adding a string reference to package.json or using require in a config file.

// 1. Install the package and prettier // npm install --save-dev prettier geta-prettier-config // 2. In package.json, add: // "prettier": "geta-prettier-config" // 3. Or create a prettier.config.js: module.exports = require('geta-prettier-config'); // 4. Format all files: // npx prettier --check . // npx prettier --write .
Debug
Known issues
gotchaThe configuration is static; no override support via this package. Overrides must be applied in consumer's config file by spreading or merging.
fix
In prettier.config.js: module.exports = { ...require('geta-prettier-config'), semi: false };
affects: 1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'geta-prettier-config'
Package not installed or not in node_modules.
fix
Run: npm install --save-dev geta-prettier-config
prettier: Invalid configuration file: module.exports = require('geta-prettier-config'); TypeError: geta-prettier-config is not a function
Attempted to call the config as a function instead of using require.
fix
Remove parentheses: module.exports = require('geta-prettier-config');
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
geta-prettier-config — npm install geta-prettier-config · libregistry