{"id":20306,"library":"prettier-config-rive","title":"prettier-config-rive","description":"Prettier shareable configuration for RiVE projects. Version 1.0.0 requires Prettier ^3.0.0 and includes prettier-plugin-packagejson. It enforces consistent code formatting across RiVE projects, with no other peer dependencies. Released as a single stable version. Differentiators: opinionated standard config for the RiVE ecosystem, minimal setup.","status":"active","version":"1.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/guoyunhe/prettier-config-rive","tags":["javascript","rive","prettier","prettier-config","standard"],"install":[{"cmd":"npm install prettier-config-rive","lang":"bash","label":"npm"},{"cmd":"yarn add prettier-config-rive","lang":"bash","label":"yarn"},{"cmd":"pnpm add prettier-config-rive","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required at version ^3.0.0","package":"prettier","optional":false},{"reason":"included as part of the extended config, but not a direct peer dependency; users may need to install if not already present","package":"prettier-plugin-packagejson","optional":true}],"imports":[{"note":"CommonJS require works, but ESM import is recommended. The config is a JSON object.","wrong":"const config = require('prettier-config-rive')","symbol":"default config","correct":"import config from 'prettier-config-rive'"},{"note":"In .prettierrc or package.json, reference the package name directly. Do not use @rive scope.","wrong":"\"prettier\": \"@rive/prettier-config\"","symbol":"use in .prettierrc","correct":"\"prettier\": \"prettier-config-rive\""},{"note":"The config is exported as a default object, not a named export. Use spread to override.","wrong":"import { rive } from 'prettier-config-rive'","symbol":"extend in prettier.config.js","correct":"module.exports = {\n  ...require('prettier-config-rive'),\n  semi: false\n}"}],"quickstart":{"code":"// Install dependencies\nnpm install --save-dev prettier prettier-config-rive\n\n// In package.json, add:\n\"prettier\": \"prettier-config-rive\"\n\n// Or in .prettierrc.json:\n\"prettier-config-rive\"\n\n// Then run:\nnpx prettier --check .","lang":"javascript","description":"Shows how to install and use the shared Prettier config in a RiVE project."},"warnings":[{"fix":"Upgrade Prettier to v3 or later, or use an older config version if available.","message":"Requires Prettier ^3.0.0; incompatible with Prettier v2","severity":"breaking","affected_versions":"<1.0.0"},{"fix":"Run npm install --save-dev prettier-plugin-packagejson","message":"prettier-plugin-packagejson is included but must be installed separately if not already present","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use require('prettier-config-rive') or import config from 'prettier-config-rive'","message":"Config is an object, not a function; do not call it or destructure named exports","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 prettier-config-rive","cause":"Package not installed or not found in node_modules","error":"Error: Cannot find module 'prettier-config-rive'"},{"fix":"Set \"prettier\": \"prettier-config-rive\" or reference an object, not a function","cause":"Misconfigured prettier field in package.json","error":"Error: Invalid configuration for 'prettier' in package.json: expected a string or object"},{"fix":"Run npm install --save-dev prettier-plugin-packagejson","cause":"Plugin not installed but config expects it","error":"Error: prettier-plugin-packagejson not found"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}