@nyarthan/prettier-config
v1.0.3
Published
Sharable prettier configuration
Readme
Installation
pnpm add -D prettier @nyarthan/prettier-configConfiguration
Create a config file such as prettier.config.ts:
export { defineConfig } from "@nyarthan/prettier-config";
export default defineConfig({
overrides: {
// override of Prettier's options that are provided by this package
},
plugins: {
astro: {
// set to `true` to load the astro plugin and config
enabled: true,
overrides: {
// override of of the astro plugin's options
},
},
tailwindcss: {},
importOrder: {
overrides: {
// only custom configuration, that can be used to order private imports in a monorepo
importPrivateScopes: ["repo", "repo-dev"],
},
},
},
});Note on Plugins
This package only ships the configuration required to use a plugin.
Setting the enabled option to true, assumes the plugin to be installed in the consuming project.
Check peerDependencies for supported versions.
