@liwo/eslint-config 0.0.6 → 0.1.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/dist/index.js CHANGED
@@ -1043,6 +1043,7 @@ async function react(options = {}) {
1043
1043
  },
1044
1044
  name: "liwo/react/rules",
1045
1045
  rules: {
1046
+ "react/jsx-no-comment-textnodes": "warn",
1046
1047
  "react/jsx-no-duplicate-props": "warn",
1047
1048
  "react/jsx-uses-vars": "warn",
1048
1049
  "react/no-access-state-in-setstate": "error",
@@ -1053,7 +1054,6 @@ async function react(options = {}) {
1053
1054
  "react/no-children-only": "warn",
1054
1055
  "react/no-children-to-array": "warn",
1055
1056
  "react/no-clone-element": "warn",
1056
- "react/no-comment-textnodes": "warn",
1057
1057
  "react/no-component-will-mount": "error",
1058
1058
  "react/no-component-will-receive-props": "error",
1059
1059
  "react/no-component-will-update": "error",
@@ -1072,6 +1072,7 @@ async function react(options = {}) {
1072
1072
  "react/no-set-state-in-component-did-update": "warn",
1073
1073
  "react/no-set-state-in-component-will-update": "warn",
1074
1074
  "react/no-string-refs": "error",
1075
+ "react/no-unnecessary-use-prefix": "warn",
1075
1076
  "react/no-unsafe-component-will-mount": "warn",
1076
1077
  "react/no-unsafe-component-will-receive-props": "warn",
1077
1078
  "react/no-unsafe-component-will-update": "warn",
@@ -1081,6 +1082,7 @@ async function react(options = {}) {
1081
1082
  "react/no-unused-state": "warn",
1082
1083
  "react/no-use-context": "warn",
1083
1084
  "react/no-useless-forward-ref": "warn",
1085
+ "react/prefer-use-state-lazy-initialization": "warn",
1084
1086
  "react-dom/no-dangerously-set-innerhtml": "warn",
1085
1087
  "react-dom/no-dangerously-set-innerhtml-with-children": "error",
1086
1088
  "react-dom/no-find-dom-node": "error",
@@ -1096,11 +1098,8 @@ async function react(options = {}) {
1096
1098
  "react-dom/no-unsafe-target-blank": "warn",
1097
1099
  "react-dom/no-use-form-state": "error",
1098
1100
  "react-dom/no-void-elements-with-children": "error",
1099
- "react-hooks/exhaustive-deps": "warn",
1100
- "react-hooks/rules-of-hooks": "error",
1101
+ ...pluginReactHooks.configs.recommended.rules,
1101
1102
  "react-hooks-extra/no-direct-set-state-in-use-effect": "warn",
1102
- "react-hooks-extra/no-unnecessary-use-prefix": "warn",
1103
- "react-hooks-extra/prefer-use-state-lazy-initialization": "warn",
1104
1103
  "react-web-api/no-leaked-event-listener": "warn",
1105
1104
  "react-web-api/no-leaked-interval": "warn",
1106
1105
  "react-web-api/no-leaked-resize-observer": "warn",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@liwo/eslint-config",
3
3
  "type": "module",
4
- "version": "0.0.6",
4
+ "version": "0.1.0",
5
5
  "description": "ESLint config by Liwo",
6
6
  "author": "Aoang <aoang@x2oe.com>",
7
7
  "license": "MIT",
@@ -27,6 +27,7 @@
27
27
  "peerDependencies": {
28
28
  "@prettier/plugin-xml": "^3.4.2",
29
29
  "@unocss/eslint-plugin": "^66.3.3",
30
+ "eslint": "^9.38.0",
30
31
  "eslint-plugin-vuejs-accessibility": "^2.4.1",
31
32
  "prettier-plugin-slidev": "^1.0.5"
32
33
  },
@@ -48,37 +49,36 @@
48
49
  "@antfu/install-pkg": "1.1.0",
49
50
  "@clack/prompts": "0.11.0",
50
51
  "@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
51
- "@eslint-react/eslint-plugin": "1.53.1",
52
- "@eslint/markdown": "7.2.0",
53
- "@stylistic/eslint-plugin": "5.3.1",
54
- "@typescript-eslint/eslint-plugin": "8.42.0",
55
- "@typescript-eslint/parser": "8.42.0",
56
- "@vitest/eslint-plugin": "1.3.9",
57
- "eslint": "9.35.0",
52
+ "@eslint-react/eslint-plugin": "2.2.4",
53
+ "@eslint/markdown": "7.5.0",
54
+ "@stylistic/eslint-plugin": "5.5.0",
55
+ "@typescript-eslint/eslint-plugin": "8.46.2",
56
+ "@typescript-eslint/parser": "8.46.2",
57
+ "@vitest/eslint-plugin": "1.3.26",
58
58
  "eslint-config-flat-gitignore": "2.1.0",
59
- "eslint-flat-config-utils": "2.1.1",
59
+ "eslint-flat-config-utils": "2.1.4",
60
60
  "eslint-merge-processors": "2.0.0",
61
61
  "eslint-plugin-antfu": "3.1.1",
62
62
  "eslint-plugin-command": "3.3.1",
63
- "eslint-plugin-format": "1.0.1",
63
+ "eslint-plugin-format": "1.0.2",
64
64
  "eslint-plugin-import-lite": "0.3.0",
65
- "eslint-plugin-jsdoc": "56.1.2",
66
- "eslint-plugin-jsonc": "2.20.1",
67
- "eslint-plugin-n": "17.23.0",
65
+ "eslint-plugin-jsdoc": "61.1.10",
66
+ "eslint-plugin-jsonc": "2.21.0",
67
+ "eslint-plugin-n": "17.23.1",
68
68
  "eslint-plugin-no-only-tests": "3.3.0",
69
- "eslint-plugin-perfectionist": "4.15.0",
70
- "eslint-plugin-pnpm": "1.1.1",
71
- "eslint-plugin-react-hooks": "5.2.0",
72
- "eslint-plugin-react-refresh": "0.4.20",
69
+ "eslint-plugin-perfectionist": "4.15.1",
70
+ "eslint-plugin-pnpm": "1.3.0",
71
+ "eslint-plugin-react-hooks": "7.0.1",
72
+ "eslint-plugin-react-refresh": "0.4.24",
73
73
  "eslint-plugin-regexp": "2.10.0",
74
74
  "eslint-plugin-toml": "0.12.0",
75
- "eslint-plugin-unicorn": "61.0.2",
76
- "eslint-plugin-unused-imports": "4.2.0",
77
- "eslint-plugin-vue": "10.4.0",
78
- "eslint-plugin-yml": "1.18.0",
75
+ "eslint-plugin-unicorn": "62.0.0",
76
+ "eslint-plugin-unused-imports": "4.3.0",
77
+ "eslint-plugin-vue": "10.5.1",
78
+ "eslint-plugin-yml": "1.19.0",
79
79
  "eslint-processor-vue-blocks": "2.0.0",
80
80
  "globals": "16.4.0",
81
- "jsonc-eslint-parser": "2.4.0",
81
+ "jsonc-eslint-parser": "2.4.1",
82
82
  "local-pkg": "1.1.2",
83
83
  "parse-gitignore": "2.0.0",
84
84
  "toml-eslint-parser": "0.10.0",
@@ -86,25 +86,27 @@
86
86
  "yaml-eslint-parser": "1.3.0"
87
87
  },
88
88
  "devDependencies": {
89
- "@eslint/config-inspector": "^1.1.0",
89
+ "@eslint/config-inspector": "^1.3.0",
90
90
  "@prettier/plugin-xml": "^3.4.2",
91
- "@types/node": "24.5.0",
92
- "@unocss/eslint-plugin": "^66.3.3",
91
+ "@types/node": "24.9.2",
92
+ "@unocss/eslint-plugin": "^66.5.4",
93
+ "bumpp": "^10.3.1",
94
+ "eslint": "^9.38.0",
93
95
  "eslint-plugin-vuejs-accessibility": "^2.4.1",
94
- "eslint-typegen": "^2.2.1",
96
+ "eslint-typegen": "^2.3.0",
95
97
  "execa": "^9.6.0",
96
- "lint-staged": "^16.1.2",
97
- "pnpm-workspace-yaml": "^1.0.0",
98
+ "lint-staged": "^16.2.6",
99
+ "pnpm-workspace-yaml": "^1.3.0",
98
100
  "prettier-plugin-slidev": "^1.0.5",
99
- "react": "^19.1.0",
100
- "simple-git-hooks": "^2.13.0",
101
- "tinyglobby": "^0.2.14",
102
- "tsdown": "^0.14.2",
103
- "tsx": "^4.20.3",
104
- "typescript": "^5.8.3",
105
- "vitest": "^3.2.4",
106
- "vue": "^3.5.17",
107
- "@liwo/eslint-config": "0.0.6"
101
+ "react": "^19.2.0",
102
+ "simple-git-hooks": "^2.13.1",
103
+ "tinyglobby": "^0.2.15",
104
+ "tsdown": "^0.15.11",
105
+ "tsx": "^4.20.6",
106
+ "typescript": "^5.9.3",
107
+ "vitest": "^4.0.5",
108
+ "vue": "^3.5.22",
109
+ "@liwo/eslint-config": "0.1.0"
108
110
  },
109
111
  "simple-git-hooks": {
110
112
  "pre-commit": "npx lint-staged"
@@ -122,8 +124,10 @@
122
124
  "build:inspector": "pnpm build && npx @eslint/config-inspector build && tsx scripts/fixed-netlify.ts",
123
125
  "watch": "tsdown --watch",
124
126
  "lint": "eslint",
127
+ "format": "eslint --fix .",
125
128
  "gen": "tsx scripts/typegen.ts",
126
129
  "test": "vitest",
130
+ "release": "bumpp",
127
131
  "typecheck": "tsc --noEmit"
128
132
  }
129
133
  }