0.0.14 • Published 3 months ago
@demonicattack/prettier v0.0.14
npm
npm install -D @demonicattack/prettier
yarn
yarn add -D @demonicattack/prettier
pnpm
pnpm add -D @demonicattack/prettier
configuration file
// prettier.config.mjs or prettier.config.js -> set "type": "module" in package.json
import { prettier } from '@demonicattack/prettier';
/** @type {import('@demonicattack/prettier').PrettierOptions} */
export default prettier;
.prettierignore
# unix
cp node_modules/@demonicattack/prettier/.prettierignore .prettierignore
# windows
copy node_modules/@demonicattack/prettier/.prettierignore .prettierignore
script
{
"scripts": {
"format": "prettier --write \"**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx,json,prisma,md}\""
}
}