A strict, accessibility-focused Prettier shared configuration from the moonrepo team. Current stable version is 1.2.2, released regularly alongside other moonrepo presets. Key differentiators: enforces tabs over spaces for accessibility, includes arrow parenthesis always, trailing commas, semicolons, single quotes, and spaces for indentation. Minimal dependencies; export is a string reference, not a JavaScript object. Designed for projects using Prettier with Node.js and the moon monorepo toolchain.
npm install prettier-config-moonVerified import paths — ran on the pinned version, not inferred.
Shows how to extend the shared Prettier config by exporting the package name as a string in a prettier.config.js file.
Export the package name as a string: module.exports = 'prettier-config-moon';
Override the tabWidth and useTabs options in your local config if needed.
Ensure prettier peer dependency is compatible. No specific fix needed.
Install the package as a dev dependency: npm install --save-dev prettier-config-moon
Change to: module.exports = 'prettier-config-moon';
Place the configuration file (e.g., prettier.config.js) in the project root directory.