Registry /
devops / prettier-config-smarthr
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
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
default
✓ module.exports = require('prettier-config-smarthr')
✗ import prettierConfig from 'prettier-config-smarthr'
This package exports a plain object via CommonJS. ESM import is not supported.
prettierConfig
✓ const prettierConfig = require('prettier-config-smarthr')
✗ const { prettier } = require('prettier-config-smarthr')
The export is the entire config object, not a named property.
extend in package.json
✓ "prettier": "prettier-config-smarthr"
✗ "prettier": { "extends": "prettier-config-smarthr" }
In package.json, use string value. In .prettierrc.js, use module.exports = require('prettier-config-smarthr').
Shows how to extend and override the SmartHR Prettier config in a .prettierrc.js file.
const prettierConfig = require('prettier-config-smarthr');
module.exports = {
...prettierConfig,
semi: true,
singleQuote: true
};
Errors
Common errors & fixes
Error: Cannot find module 'prettier-config-smarthr'
Package not installed or not in node_modules.
fixRun npm install --save-dev prettier-config-smarthr
Invalid configuration: Module 'prettier-config-smarthr' was not found.
Prettier cannot resolve the config package.
fixEnsure prettier-config-smarthr is installed and your Prettier config file correctly references it.
Audit
Dependencies
No dependency data recorded yet.