@froko/prettier-config
v1.3.0
Published
Shareable prettier configuration
Readme
📦 @froko/prettier-config
📥 Installation
npm install --save-dev @froko/prettier-config
yarn add --dev @froko/prettier-config
pnpm install --save-dev @froko/prettier-config🔩 Usage
// prettier.config.mjs
import prettierConfig from '@froko/prettier-config'
export default {
...prettierConfig,
}// package.json
{
"prettier": "@froko/prettier-config"
}📝 Content
const config = {
semi: false,
singleQuote: true,
bracketSameLine: true,
overrides: [
{
files: '*.md',
options: {
proseWrap: 'always',
},
},
],
}
export default configThere are no settigs for indentation and line length. Prettier inherits those
settings from .editorconfig.
Here you can
find an example configuration.
