{"id":20063,"library":"geta-prettier-config","title":"geta-prettier-config","description":"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.","status":"active","version":"1.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/Geta/prettier-config","tags":["javascript"],"install":[{"cmd":"npm install geta-prettier-config","lang":"bash","label":"npm"},{"cmd":"yarn add geta-prettier-config","lang":"bash","label":"yarn"},{"cmd":"pnpm add geta-prettier-config","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Prettier resolves the package name automatically; no need for a full path.","wrong":"In package.json: \"prettier\": \"./node_modules/geta-prettier-config\"","symbol":"geta-prettier-config (default)","correct":"In package.json: \"prettier\": \"geta-prettier-config\""},{"note":"The package exports a plain object, not a default export. No .default needed.","wrong":"const config = require('geta-prettier-config').default;","symbol":"require (CommonJS)","correct":"const config = require('geta-prettier-config');"},{"note":"The package uses module.exports = {...}, so default import works in ESM. Named import would fail.","wrong":"import { config } from 'geta-prettier-config';","symbol":"import (ESM)","correct":"import config from 'geta-prettier-config';"},{"note":"Simply re-export the required object; spreading or renaming is unnecessary.","wrong":"module.exports = { ...require('geta-prettier-config') };\n// or\nmodule.exports = getaPrettierConfig;","symbol":"prettier.config.js / .prettierrc.js","correct":"module.exports = require('geta-prettier-config');"}],"quickstart":{"code":"// 1. Install the package and prettier\n// npm install --save-dev prettier geta-prettier-config\n\n// 2. In package.json, add:\n// \"prettier\": \"geta-prettier-config\"\n\n// 3. Or create a prettier.config.js:\nmodule.exports = require('geta-prettier-config');\n\n// 4. Format all files:\n// npx prettier --check .\n// npx prettier --write .","lang":"javascript","description":"Install and use the shared Prettier config by adding a string reference to package.json or using require in a config file."},"warnings":[{"fix":"In prettier.config.js: module.exports = { ...require('geta-prettier-config'), semi: false };","message":"The configuration is static; no override support via this package. Overrides must be applied in consumer's config file by spreading or merging.","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: npm install --save-dev geta-prettier-config","cause":"Package not installed or not in node_modules.","error":"Error: Cannot find module 'geta-prettier-config'"},{"fix":"Remove parentheses: module.exports = require('geta-prettier-config');","cause":"Attempted to call the config as a function instead of using require.","error":"prettier: Invalid configuration file: module.exports = require('geta-prettier-config'); TypeError: geta-prettier-config is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}