A shared Prettier configuration by Halo Lab development team that enforces consistent code formatting across projects. Version 1.0.7 is the latest stable release; the project is maintained on a best-effort basis with irregular updates. Key differentiators: includes import ordering via @trivago/prettier-plugin-sort-imports with a specific 5-group rule (node_modules, @/, ./ non-asset, assets, CSS/SCSS). Requires Prettier and the sort-imports plugin as peer dependencies.
npm install prettier-config-halo-labNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install dependencies and configure Prettier to use shared config with import sorting.
Review the 5-group order in the README and adjust your import style accordingly.
Run: npm install --save-dev @trivago/prettier-plugin-sort-imports
Use Prettier v2 or check plugin compatibility; see @trivago/prettier-plugin-sort-imports docs for v3 setup.
In .prettierrc.js: module.exports = { ...require('prettier-config-halo-lab'), semi: true };If you need different order, create your own Prettier config instead of extending this one.
npm install --save-dev prettier-config-halo-lab
npm install --save-dev @trivago/prettier-plugin-sort-imports
Downgrade Prettier to v2 or update plugin to compatible version (e.g., @trivago/prettier-plugin-sort-imports@4)
If using .prettierrc (JSON), ensure content is valid JSON string: "prettier-config-halo-lab". If using .prettierrc.js, use module.exports = 'prettier-config-halo-lab';