@esmate/prettier 1.0.3 → 1.0.5

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 (3) hide show
  1. package/LICENSE +16 -0
  2. package/README.md +7 -9
  3. package/package.json +1 -1
package/LICENSE ADDED
@@ -0,0 +1,16 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Vien Dinh
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
6
+ documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
7
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8
+ persons to whom the Software is furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
11
+ Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
14
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
15
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
16
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -8,22 +8,20 @@ Prettier configuration for humans with support for React, Vue, Svelte, Astro, Ta
8
8
  npm install -D @esmate/prettier prettier
9
9
  ```
10
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
- ```
11
+ Check out [ESMate CLI](https://www.npmjs.com/package/esmate) for better integration with
12
+ [ESLint](https://github.com/VienDinhCom/esmate/tree/main/packages/eslint)
16
13
 
17
14
  ## Usage
18
15
 
19
16
  Define your Prettier configuration in a `prettier.config.js` file:
20
17
 
21
18
  ```ts
19
+ // @ts-check
22
20
  import { defineConfig } from "@esmate/prettier";
23
21
 
24
22
  export default defineConfig({
25
- // astro: true
26
- // svelte: true
23
+ // astro: true,
24
+ // svelte: true,
27
25
 
28
26
  tailwind: {
29
27
  tailwindFunctions: ["cn"],
@@ -36,11 +34,11 @@ export default defineConfig({
36
34
  Run Prettier to check your code:
37
35
 
38
36
  ```bash
39
- prettier --check
37
+ prettier --check .
40
38
  ```
41
39
 
42
40
  Automatically fix formatting issues:
43
41
 
44
42
  ```bash
45
- prettier --write
43
+ prettier --write .
46
44
  ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@esmate/prettier",
3
3
  "type": "module",
4
- "version": "1.0.3",
4
+ "version": "1.0.5",
5
5
  "description": "Prettier configuration for humans.",
6
6
  "license": "MIT",
7
7
  "repository": {