Registry / devops / prettier-config-rive

prettier-config-rive

JSON →
library1.0.0jsnpmunverified

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.

npm install prettier-config-rive
INSTALL
IMPORT
SIG · PRETTIER-CONFIG-RI
P
prettier-config-rive
devopsjavascriptv1.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
import config from 'prettier-config-rive'
const config = require('prettier-config-rive')
CommonJS require works, but ESM import is recommended. The config is a JSON object.
use in .prettierrc
"prettier": "prettier-config-rive"
"prettier": "@rive/prettier-config"
In .prettierrc or package.json, reference the package name directly. Do not use @rive scope.
extend in prettier.config.js
module.exports = { ...require('prettier-config-rive'), semi: false }
import { rive } from 'prettier-config-rive'
The config is exported as a default object, not a named export. Use spread to override.

Shows how to install and use the shared Prettier config in a RiVE project.

// Install dependencies npm install --save-dev prettier prettier-config-rive // In package.json, add: "prettier": "prettier-config-rive" // Or in .prettierrc.json: "prettier-config-rive" // Then run: npx prettier --check .
Debug
Known issues
breakingRequires Prettier ^3.0.0; incompatible with Prettier v2
fix
Upgrade Prettier to v3 or later, or use an older config version if available.
affects: <1.0.0
gotchaprettier-plugin-packagejson is included but must be installed separately if not already present
fix
Run npm install --save-dev prettier-plugin-packagejson
affects: >=1.0.0
gotchaConfig is an object, not a function; do not call it or destructure named exports
fix
Use require('prettier-config-rive') or import config from 'prettier-config-rive'
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'prettier-config-rive'
Package not installed or not found in node_modules
fix
Run npm install --save-dev prettier-config-rive
Error: Invalid configuration for 'prettier' in package.json: expected a string or object
Misconfigured prettier field in package.json
fix
Set "prettier": "prettier-config-rive" or reference an object, not a function
Error: prettier-plugin-packagejson not found
Plugin not installed but config expects it
fix
Run npm install --save-dev prettier-plugin-packagejson
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
prettierrequiredpeer dependency required at version ^3.0.0
prettier-plugin-packagejsonoptionalincluded as part of the extended config, but not a direct peer dependency; users may need to install if not already present
Agent activity
4 hits · last 30 days
node
4
Resources
prettier-config-rive — npm install prettier-config-rive · libregistry