1.0.0 • Published 10 months ago
@handmade-systems/prettier-config v1.0.0
@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',
},
],
}