@net.christianto/eslint-config 0.4.1 → 0.4.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 +11 -1
  2. package/package.json +15 -5
package/README.md CHANGED
@@ -7,7 +7,17 @@ ESLint configuration for JavaScript and TypeScript
7
7
  ### Manual Install
8
8
 
9
9
  ```bash
10
- pnpm add -D eslint @net.christianto/eslint-config
10
+ pnpm add -D eslint @eslint/js eslint-config-prettier eslint-plugin-n typescript-eslint @net.christianto/eslint-config
11
+ ```
12
+
13
+ Supported ESLint versions: 9.x and 10.x. Install the `@eslint/js` major
14
+ that matches your `eslint` major.
15
+
16
+ For the React config (`@net.christianto/eslint-config/react`), also install the
17
+ optional peers:
18
+
19
+ ```bash
20
+ pnpm add -D eslint-plugin-react globals
11
21
  ```
12
22
 
13
23
  ## Usage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@net.christianto/eslint-config",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "ESLint configuration for JavaScript and TypeScript",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",
@@ -28,6 +28,7 @@
28
28
  "author": "Gunawan \"chez14\" Christianto <chris@christianto.net>",
29
29
  "license": "MIT",
30
30
  "devDependencies": {
31
+ "@eslint/js": "*",
31
32
  "@net.christianto/tsconfig": "file:../tsconfig",
32
33
  "@types/eslint": "*",
33
34
  "@types/node": "^26.6.3",
@@ -37,17 +38,26 @@
37
38
  "eslint-plugin-react": "*",
38
39
  "globals": "*",
39
40
  "tsdown": "^0.23.0",
40
- "typescript": "^7.0.2",
41
+ "typescript": "~6.0.3",
41
42
  "typescript-eslint": "*"
42
43
  },
43
44
  "peerDependencies": {
44
- "eslint": ">=9.28.0",
45
+ "@eslint/js": "^9.28.0 || ^10.0.0",
46
+ "eslint": "^9.28.0 || ^10.0.0",
45
47
  "eslint-config-prettier": ">=10.1.5",
46
- "eslint-plugin-n": "^17.19.0",
48
+ "eslint-plugin-n": "^17.19.0 || ^18.0.0",
47
49
  "eslint-plugin-react": "^7.37.5",
48
- "globals": "^15.15.0",
50
+ "globals": "^15.15.0 || ^16.0.0 || ^17.0.0",
49
51
  "typescript-eslint": "^8.34.0"
50
52
  },
53
+ "peerDependenciesMeta": {
54
+ "eslint-plugin-react": {
55
+ "optional": true
56
+ },
57
+ "globals": {
58
+ "optional": true
59
+ }
60
+ },
51
61
  "publishConfig": {
52
62
  "access": "public",
53
63
  "provenance": true