@ethang/eslint-config 22.8.0 → 22.8.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 +20 -3
- package/package.json +9 -8
package/README.md
CHANGED
|
@@ -45,7 +45,9 @@
|
|
|
45
45
|
|
|
46
46
|
# Install
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
```powershell
|
|
49
|
+
pnpm i -D eslint typescript-eslint @ethang/eslint-config
|
|
50
|
+
```
|
|
49
51
|
|
|
50
52
|
**Requires TypesScript and tsconfig.json at root directory.**
|
|
51
53
|
|
|
@@ -90,12 +92,27 @@ export default tseslint.config(
|
|
|
90
92
|
|
|
91
93
|
**Browserslist**
|
|
92
94
|
|
|
93
|
-
This config will also lint for browserslist features.
|
|
95
|
+
This config will also lint for browserslist features. [More info.](https://github.com/browserslist/browserslist)
|
|
96
|
+
|
|
97
|
+
It's recommended to use [browserslist-config-baseline](https://github.com/web-platform-dx/browserslist-config-baseline)
|
|
98
|
+
|
|
99
|
+
```powershell
|
|
100
|
+
pnpm i -D browserslist-config-baseline
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
```json
|
|
104
|
+
"browserslist": [
|
|
105
|
+
"extends browserslist-config-baseline",
|
|
106
|
+
"current node"
|
|
107
|
+
],
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Or a simpler config without an additional dependency.
|
|
94
111
|
|
|
95
112
|
```json
|
|
96
113
|
"browserslist": [
|
|
97
114
|
"defaults and fully supports es6-module",
|
|
98
|
-
"
|
|
115
|
+
"current node"
|
|
99
116
|
],
|
|
100
117
|
```
|
|
101
118
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Ethan Glover",
|
|
3
3
|
"browserslist": [
|
|
4
|
-
"
|
|
5
|
-
"
|
|
4
|
+
"extends browserslist-config-baseline",
|
|
5
|
+
"current node"
|
|
6
6
|
],
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@angular-eslint/eslint-plugin": "^19.7.1",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"eslint-plugin-compat": "^6.0.2",
|
|
26
26
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
27
27
|
"eslint-plugin-lodash": "^8.0.0",
|
|
28
|
-
"eslint-plugin-perfectionist": "^4.
|
|
28
|
+
"eslint-plugin-perfectionist": "^4.14.0",
|
|
29
29
|
"eslint-plugin-prettier": "^5.4.1",
|
|
30
30
|
"eslint-plugin-react-hooks": "^5.2.0-rc.1",
|
|
31
|
-
"eslint-plugin-react-you-might-not-need-an-effect": "^0.0.
|
|
31
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "^0.0.44",
|
|
32
32
|
"eslint-plugin-solid": "^0.14.5",
|
|
33
33
|
"eslint-plugin-sonarjs": "3.0.2",
|
|
34
|
-
"eslint-plugin-storybook": "^9.0.
|
|
34
|
+
"eslint-plugin-storybook": "^9.0.5",
|
|
35
35
|
"eslint-plugin-tailwindcss": "^3.18.0",
|
|
36
36
|
"eslint-plugin-unicorn": "^59.0.1",
|
|
37
37
|
"prettier": "^3.5.3",
|
|
@@ -39,14 +39,15 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@ethang/markdown-generator": "^1.1.5",
|
|
42
|
-
"@ethang/toolbelt": "^4.4.
|
|
42
|
+
"@ethang/toolbelt": "^4.4.10",
|
|
43
43
|
"@types/eslint-plugin-jsx-a11y": "^6.10.0",
|
|
44
44
|
"@types/eslint-plugin-tailwindcss": "^3.17.0",
|
|
45
45
|
"@types/lodash": "^4.17.17",
|
|
46
46
|
"@types/node": "^22.15.29",
|
|
47
|
+
"browserslist-config-baseline": "^0.4.0",
|
|
47
48
|
"lodash": "^4.17.21",
|
|
48
49
|
"typescript": "^5.8.3",
|
|
49
|
-
"zod": "^3.25.
|
|
50
|
+
"zod": "^3.25.51"
|
|
50
51
|
},
|
|
51
52
|
"engines": {
|
|
52
53
|
"node": ">=22"
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
"url": "git+https://github.com/eglove/ethang-monorepo.git#master"
|
|
59
60
|
},
|
|
60
61
|
"type": "module",
|
|
61
|
-
"version": "22.8.
|
|
62
|
+
"version": "22.8.2",
|
|
62
63
|
"scripts": {
|
|
63
64
|
"build": "bun build.ts && pnpm lint",
|
|
64
65
|
"lint": "eslint . --fix && prettier src --write"
|