@handmade-systems/prettier-config
v1.0.0
Published
Shared prettier config for [Handmade Systems](https://handmade-systems.de/)
Downloads
39
Readme
@handmade-systems/prettier-config
Shared prettier config for Handmade Systems
Installation
Install eslint-config-prettier:
npm install --save-dev @handmade-systems/prettier-config
Add eslint-config-prettier to your prettier.config.json
- For a project using base config:
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { base } = require('@handmade-systems/prettier-config')
// eslint-disable-next-line no-undef
module.exports = {
...base,
overrides: [
{
files: ["**/**"],
options: {
plugins: [
"@handmade-systems/prettier-config"
]
},
},
],
}
- For a project using Tailwind CSS:
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { tailwind } = require('@handmade-systems/prettier-config')
// eslint-disable-next-line no-undef
module.exports = {
...tailwind,
overrides: [
{
files: ["**/**"],
options: {
plugins: [
"@handmade-systems/prettier-config"
]
},
tailwindConfig: './tailwind.config.js',
},
],
}