@esmate/prettier 0.0.3 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +45 -0
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -1 +1,46 @@
1
1
  # @esmate/prettier
2
+
3
+ Prettier configuration for humans with support for React, Vue, Svelte, Astro, Tailwind CSS, and more.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -D @esmate/prettier prettier
9
+ ```
10
+
11
+ If you are using [ESMate CLI](https://www.npmjs.com/package/esmate), it's built-in, so only need to install `prettier`:
12
+
13
+ ```bash
14
+ npm install -D prettier
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ Define your Prettier configuration in a `prettier.config.js` file:
20
+
21
+ ```ts
22
+ import { defineConfig } from "esmate/prettier";
23
+
24
+ export default defineConfig({
25
+ // astro: true
26
+ // svelte: true
27
+
28
+ tailwind: {
29
+ tailwindFunctions: ["cn"],
30
+ tailwindStylesheet: "src/global.css",
31
+ },
32
+ ignores: [],
33
+ });
34
+ ```
35
+
36
+ Run Prettier to check your code:
37
+
38
+ ```bash
39
+ prettier --check
40
+ ```
41
+
42
+ Automatically fix formatting issues:
43
+
44
+ ```bash
45
+ prettier --write
46
+ ```
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@esmate/prettier",
3
3
  "type": "module",
4
- "version": "0.0.3",
4
+ "version": "1.0.1",
5
+ "description": "Prettier configuration for humans.",
5
6
  "license": "MIT",
6
7
  "repository": {
7
8
  "type": "git",