{"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,"search_vec":"'1.0.0':34 'across':54 'code':52 'config':4,31,49,61 'configur':7,18 'consist':51 'consum':68 'default':17 'depend':64 'design':22 'differenti':57 'extend':25 'file':32 'geta':2,10,55 'geta-prettier-config':1 'initi':37 'instal':70 'javascript':72 'lightweight':59 'object':19 'opinion':48 'packag':13 'package.json':27 'peer':63 'prettier':3,6,21,30,71 'project':11,56 'provid':14 'releas':39 'reli':65 'share':5 'shareabl':60 'simpl':47 'sinc':43 'singl':16 'stabl':38 'style':53 'target':50 'updat':42 'use':8 'version':33 'via':26 'without':62","created_at":"2026-04-25T11:21:08.006855+00:00","updated_at":"2026-04-25T11:21:08.006855+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/Geta/prettier-config","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/geta-prettier-config","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-24","install_tag":null}}