1.0.4 • Published 6 months ago
@esmate/prettier v1.0.4
@esmate/prettier
Prettier configuration for humans with support for React, Vue, Svelte, Astro, Tailwind CSS, and more.
Installation
npm install -D @esmate/prettier prettierIf you are using ESMate CLI, it's built-in, so only need to install prettier.
Usage
Define your Prettier configuration in a prettier.config.js file:
// @ts-check
import { defineConfig } from "@esmate/prettier";
export default defineConfig({
// astro: true
// svelte: true
tailwind: {
tailwindFunctions: ["cn"],
tailwindStylesheet: "src/global.css",
},
ignores: [],
});Run Prettier to check your code:
prettier --check .Automatically fix formatting issues:
prettier --write .