1.0.4 • Published 5 months ago

@esmate/prettier v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@esmate/prettier

Prettier configuration for humans with support for React, Vue, Svelte, Astro, Tailwind CSS, and more.

Installation

npm install -D @esmate/prettier prettier

If 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 .
1.0.4

5 months ago

1.0.3

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago

0.0.0

5 months ago