esmate 1.0.11 → 2.0.0
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.
- package/README.md +4 -4
- package/package.json +2 -10
- package/dist/exports/eslint.d.ts +0 -1
- package/dist/exports/eslint.js +0 -1
- package/dist/exports/prettier.d.ts +0 -1
- package/dist/exports/prettier.js +0 -1
package/README.md
CHANGED
|
@@ -22,14 +22,14 @@ npm install -D esmate
|
|
|
22
22
|
First, you need to install Prettier:
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
npm install -D prettier
|
|
25
|
+
npm install -D prettier @esmate/prettier
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
Define your Prettier configuration in a `prettier.config.js` file:
|
|
29
29
|
|
|
30
30
|
```ts
|
|
31
31
|
// @ts-check
|
|
32
|
-
import { defineConfig } from "esmate/prettier";
|
|
32
|
+
import { defineConfig } from "@esmate/prettier";
|
|
33
33
|
|
|
34
34
|
export default defineConfig({
|
|
35
35
|
tailwind: {
|
|
@@ -60,14 +60,14 @@ esmate fmt
|
|
|
60
60
|
First, you need to install ESLint:
|
|
61
61
|
|
|
62
62
|
```bash
|
|
63
|
-
npm install -D eslint
|
|
63
|
+
npm install -D eslint @esmate/eslint
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
Define your ESLint configuration in a `eslintrc.config.js` file:
|
|
67
67
|
|
|
68
68
|
```ts
|
|
69
69
|
// @ts-check
|
|
70
|
-
import { defineConfig } from "esmate/eslint";
|
|
70
|
+
import { defineConfig } from "@esmate/eslint";
|
|
71
71
|
|
|
72
72
|
export default defineConfig({
|
|
73
73
|
type: "app",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "esmate",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"description": "Uncomplicate JavaScript",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -19,12 +19,6 @@
|
|
|
19
19
|
"toolkit",
|
|
20
20
|
"utility"
|
|
21
21
|
],
|
|
22
|
-
"exports": {
|
|
23
|
-
"./*": {
|
|
24
|
-
"types": "./dist/exports/*.d.ts",
|
|
25
|
-
"import": "./dist/exports/*.js"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
22
|
"bin": {
|
|
29
23
|
"esm": "./dist/index.js",
|
|
30
24
|
"esmate": "./dist/index.js"
|
|
@@ -38,9 +32,7 @@
|
|
|
38
32
|
"consola": "^3.4.2",
|
|
39
33
|
"es-toolkit": "^1.35.0",
|
|
40
34
|
"find-up": "^7.0.0",
|
|
41
|
-
"nypm": "^0.6.0"
|
|
42
|
-
"@esmate/eslint": "1.0.3",
|
|
43
|
-
"@esmate/prettier": "1.0.4"
|
|
35
|
+
"nypm": "^0.6.0"
|
|
44
36
|
},
|
|
45
37
|
"devDependencies": {
|
|
46
38
|
"@rslib/core": "^0.7.1",
|
package/dist/exports/eslint.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@esmate/eslint";
|
package/dist/exports/eslint.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@esmate/eslint";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@esmate/prettier";
|
package/dist/exports/prettier.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "@esmate/prettier";
|