@ethang/eslint-config 22.8.1 → 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.
Files changed (2) hide show
  1. package/README.md +20 -3
  2. package/package.json +6 -5
package/README.md CHANGED
@@ -45,7 +45,9 @@
45
45
 
46
46
  # Install
47
47
 
48
- `pnpm i -D eslint typescript-eslint @ethang/eslint-config`
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. Make sure to set this in package.json. [More info.](https://github.com/browserslist/browserslist)
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
- "maintained node versions"
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
- "defaults and fully supports es6-module",
5
- "maintained node versions"
4
+ "extends browserslist-config-baseline",
5
+ "current node"
6
6
  ],
7
7
  "dependencies": {
8
8
  "@angular-eslint/eslint-plugin": "^19.7.1",
@@ -28,10 +28,10 @@
28
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.43",
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.4",
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",
@@ -44,6 +44,7 @@
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
50
  "zod": "^3.25.51"
@@ -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.1",
62
+ "version": "22.8.2",
62
63
  "scripts": {
63
64
  "build": "bun build.ts && pnpm lint",
64
65
  "lint": "eslint . --fix && prettier src --write"