@jiakun-zhao/eslint-config 1.2.7 → 1.3.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 CHANGED
@@ -46,4 +46,26 @@ ni -D @jiakun-zhao/eslint-config
46
46
  "yaml"
47
47
  ]
48
48
  }
49
+ ```
50
+
51
+ #### Other
52
+
53
+ UnoCSS
54
+
55
+ ```bash
56
+ pnpm i @unocss/eslint-config
57
+ pnpm i eslint-plugin-solid
58
+ ```
59
+
60
+ ```diff
61
+ "eslintConfig": {
62
+ + "plugins": [
63
+ + "solid"
64
+ + ],
65
+ "extends": [
66
+ "@jiakun-zhao",
67
+ + "@unocss",
68
+ + "plugin:solid/recommended"
69
+ ]
70
+ }
49
71
  ```
package/dist/index.cjs CHANGED
@@ -3,7 +3,6 @@
3
3
  const index = {
4
4
  extends: [
5
5
  "@antfu",
6
- "@unocss",
7
6
  "plugin:react/recommended"
8
7
  ],
9
8
  rules: {
@@ -39,7 +38,8 @@ const index = {
39
38
  "react/jsx-newline": "off",
40
39
  "react/jsx-one-expression-per-line": "off",
41
40
  "react/jsx-no-bind": "off",
42
- "react/jsx-curly-spacing": ["error", { when: "never", children: { when: "never" } }]
41
+ "react/jsx-curly-spacing": ["error", { when: "never", children: { when: "never" } }],
42
+ "react/jsx-closing-bracket-location": "warn"
43
43
  }
44
44
  };
45
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiakun-zhao/eslint-config",
3
- "version": "1.2.7",
3
+ "version": "1.3.0",
4
4
  "packageManager": "pnpm@8.8.0",
5
5
  "description": "Jiakun's ESLint config.",
6
6
  "author": "Jiakun Zhao <hi@zhaojiakun.com>",
@@ -18,15 +18,14 @@
18
18
  "eslint": ">=7.4.0"
19
19
  },
20
20
  "dependencies": {
21
- "@antfu/eslint-config": "^0.41.4",
22
- "@unocss/eslint-config": "^0.56.4",
21
+ "@antfu/eslint-config": "^v0.43.1",
23
22
  "eslint-plugin-react": "^7.33.2"
24
23
  },
25
24
  "devDependencies": {
26
25
  "@types/eslint": "^8.44.3",
27
- "@types/node": "^20.7.2",
26
+ "@types/node": "^20.8.3",
28
27
  "bumpp": "^9.2.0",
29
- "eslint": "^8.50.0",
28
+ "eslint": "^8.51.0",
30
29
  "typescript": "^5.2.2",
31
30
  "unbuild": "^2.0.0"
32
31
  },