Prettier Config Hive
raw JSON → 0.1.7 verified Sat Apr 25 auth: no javascript
Prettier Config Hive (v0.1.7) is an opinionated Prettier configuration package from Hive Solutions. It provides a shared, consistent set of formatting rules for Prettier across JavaScript/TypeScript projects. The package is custom to Hive Solutions' internal style guide, offering a standard configuration that can be extended. It is released on npm with no known release cadence, and its key differentiator is that it is tailored specifically for Hive Solutions' codebase style.
Common errors
error Cannot find module 'prettier-config-hive' ↓
cause The package is not installed or not available in the project's node_modules.
fix
npm install prettier-config-hive --save-dev
error Unexpected token 'export' ↓
cause Using CommonJS require() instead of ESM import.
fix
Use import syntax in an ESM context or use dynamic import().
error Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports" in prettier-config-hive ↓
cause Attempting to require a subpath that is not exported.
fix
Only import the main entry point: import prettierConfig from 'prettier-config-hive'
Warnings
gotcha The package is ESM-only. If using CommonJS require() it will fail. ↓
fix Use import (ESM) or switch to a CJS-compatible config package.
gotcha The config is opinionated and may not match community standards. Override as needed. ↓
fix Extend the config and override specific options.
deprecated Package has not seen updates since v0.1.7 (May 2021). May not be actively maintained. ↓
fix Consider forking or switching to a more maintained config like prettier-config-standard.
Install
npm install prettier-config-hive yarn add prettier-config-hive pnpm add prettier-config-hive Imports
- prettierConfigHive wrong
const prettierConfigHive = require('prettier-config-hive')correctimport prettierConfigHive from 'prettier-config-hive' - default wrong
module.exports = require('prettier-config-hive')correctexport { default } from 'prettier-config-hive'
Quickstart
// .prettierrc.js
export { default } from 'prettier-config-hive';
// Or if extending:
import prettierConfig from 'prettier-config-hive';
export default {
...prettierConfig,
semi: false // override example
}