@acfatah/eslint-preset 1.3.1 → 1.3.2
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 +8 -2
- package/package.json +9 -3
package/README.md
CHANGED
|
@@ -27,12 +27,18 @@ Additional rules included are:
|
|
|
27
27
|
|
|
28
28
|
## Installation
|
|
29
29
|
|
|
30
|
-
To install
|
|
30
|
+
To install ESLint and this preset with Bun, run:
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
bun add --dev @acfatah/eslint-preset
|
|
33
|
+
bun add --dev eslint @acfatah/eslint-preset
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
+
This preset declares `eslint`, `@antfu/eslint-config`, `@eslint/markdown`,
|
|
37
|
+
`eslint-plugin-better-tailwindcss`, `eslint-plugin-format`, and
|
|
38
|
+
`eslint-plugin-vue` as peer dependencies. Modern package managers, including
|
|
39
|
+
Bun, will install these peers automatically when you add the preset, so you do
|
|
40
|
+
not need to list each plugin manually in your `package.json`.
|
|
41
|
+
|
|
36
42
|
Add `eslint.config.ts` file with the following content. `config` is just a wrapper
|
|
37
43
|
to the `antfu` factory function. See [antfu Customization][antfu-factory-fuction]
|
|
38
44
|
section for more details.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acfatah/eslint-preset",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.2",
|
|
5
5
|
"description": "Eslint config preset.",
|
|
6
6
|
"author": "Achmad F. Ibrahim <acfatah@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"node": "^20.19.0 || >=22.12.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
|
-
"build": "bun --version > .bun-version && bun install && bun run
|
|
33
|
+
"build": "bun --version > .bun-version && bun install && bun run scripts/build.ts",
|
|
34
34
|
"lint": "bunx --bun eslint",
|
|
35
35
|
"lint:staged": "bunx --bun eslint --pass-on-no-patterns --no-warn-ignored $(git diff --relative --cached --name-only --diff-filter=d)",
|
|
36
36
|
"lint:commit-message": "bunx --bun commitlint --edit",
|
|
@@ -38,20 +38,26 @@
|
|
|
38
38
|
"typecheck": "tsc --noEmit",
|
|
39
39
|
"release": "bun run build && bunx --bun bumpp"
|
|
40
40
|
},
|
|
41
|
-
"
|
|
41
|
+
"peerDependencies": {
|
|
42
42
|
"@antfu/eslint-config": "^6.7.1",
|
|
43
43
|
"@eslint/markdown": "^7.5.1",
|
|
44
|
+
"eslint": "^9.39.2",
|
|
44
45
|
"eslint-plugin-better-tailwindcss": "^3.8.0",
|
|
45
46
|
"eslint-plugin-format": "^1.1.0",
|
|
46
47
|
"eslint-plugin-vue": "^10.6.2"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
50
|
+
"@antfu/eslint-config": "^6.7.1",
|
|
49
51
|
"@commitlint/cli": "^20.2.0",
|
|
50
52
|
"@commitlint/config-conventional": "^20.2.0",
|
|
53
|
+
"@eslint/markdown": "^7.5.1",
|
|
51
54
|
"@types/bun": "^1.3.5",
|
|
52
55
|
"bumpp": "^10.3.2",
|
|
53
56
|
"bun-plugin-dts": "^0.3.0",
|
|
54
57
|
"eslint": "^9.39.2",
|
|
58
|
+
"eslint-plugin-better-tailwindcss": "^3.8.0",
|
|
59
|
+
"eslint-plugin-format": "^1.1.0",
|
|
60
|
+
"eslint-plugin-vue": "^10.6.2",
|
|
55
61
|
"simple-git-hooks": "^2.13.1"
|
|
56
62
|
},
|
|
57
63
|
"simple-git-hooks": {
|