esmate 1.0.3 → 1.0.4

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 +28 -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,21 @@ 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
+ Run Prettier to format your code:
18
30
 
19
31
  ```bash
20
32
  esmate fmt
@@ -28,6 +40,18 @@ esmate fmt --fix
28
40
 
29
41
  ### Lint Code
30
42
 
43
+ Define your ESLint configuration in a `eslintrc.config.js` file:
44
+
45
+ ```ts
46
+ import { defineConfig } from "esmate/eslint";
47
+
48
+ export default defineConfig({
49
+ type: "app",
50
+ react: true,
51
+ ignores: [],
52
+ });
53
+ ```
54
+
31
55
  Run ESLint to check for code issues:
32
56
 
33
57
  ```bash
@@ -44,7 +68,7 @@ esmate lint --fix
44
68
 
45
69
  Tasks are defined in your `package.json` under a `tasks` field.
46
70
 
47
- #### ▶️ Series (Sequential Execution)
71
+ #### ▶️ Sequential Execution
48
72
 
49
73
  Run tasks in order, one after another.
50
74
 
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.4",
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",