esmate 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 (2) hide show
  1. package/README.md +34 -4
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -3,8 +3,6 @@
3
3
  `esmate` is a lightweight CLI tool designed to simplify common JavaScript/TypeScript project tasks like formatting,
4
4
  linting, and running custom task sequences.
5
5
 
6
- ## Features
7
-
8
6
  - 🧹 Lint with ESLint
9
7
  - 🔧 Format code with Prettier
10
8
  - 🛠️ Define and run custom task sequences (series and parallel)
@@ -14,7 +12,24 @@ linting, and running custom task sequences.
14
12
 
15
13
  ### Format Code
16
14
 
17
- Run Prettier to check formatting:
15
+ Define your Prettier configuration in a `prettier.config.js` file:
16
+
17
+ ```ts
18
+ import { defineConfig } from "esmate/prettier";
19
+
20
+ export default defineConfig({
21
+ tailwind: {
22
+ tailwindFunctions: ["cn"],
23
+ tailwindStylesheet: "src/global.css",
24
+ },
25
+ ignores: [],
26
+ });
27
+ ```
28
+
29
+ Check out [@esmate/prettier](https://www.npmjs.com/package/@esmate/prettier) to see all available options for Tailwind,
30
+ React, Vue, Astro, Svelte, and more.
31
+
32
+ Run Prettier to format your code:
18
33
 
19
34
  ```bash
20
35
  esmate fmt
@@ -28,6 +43,21 @@ esmate fmt --fix
28
43
 
29
44
  ### Lint Code
30
45
 
46
+ Define your ESLint configuration in a `eslintrc.config.js` file:
47
+
48
+ ```ts
49
+ import { defineConfig } from "esmate/eslint";
50
+
51
+ export default defineConfig({
52
+ type: "app",
53
+ react: true,
54
+ ignores: [],
55
+ });
56
+ ```
57
+
58
+ Check out [@esmate/eslint](https://www.npmjs.com/package/@esmate/eslint) to see all available options for Tailwind,
59
+ React, Vue, Astro, Svelte, and more.
60
+
31
61
  Run ESLint to check for code issues:
32
62
 
33
63
  ```bash
@@ -44,7 +74,7 @@ esmate lint --fix
44
74
 
45
75
  Tasks are defined in your `package.json` under a `tasks` field.
46
76
 
47
- #### ▶️ Series (Sequential Execution)
77
+ #### ▶️ Sequential Execution
48
78
 
49
79
  Run tasks in order, one after another.
50
80
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "esmate",
3
3
  "type": "module",
4
- "version": "1.0.3",
4
+ "version": "1.0.5",
5
5
  "description": "Uncomplicate JavaScript",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -39,8 +39,8 @@
39
39
  "es-toolkit": "^1.35.0",
40
40
  "find-up": "^7.0.0",
41
41
  "nypm": "^0.6.0",
42
- "@esmate/prettier": "1.0.0",
43
- "@esmate/eslint": "1.0.0"
42
+ "@esmate/eslint": "1.0.0",
43
+ "@esmate/prettier": "1.0.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@rslib/core": "^0.7.1",