@zhangyu1818/oxlint-config 2.3.0 → 2.4.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.
Files changed (2) hide show
  1. package/dist/index.js +5 -0
  2. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -160,6 +160,7 @@ const javascriptRules = {
160
160
  "no-useless-return": "error",
161
161
  "no-var": "error",
162
162
  "no-with": "error",
163
+ "one-var": ["error", { initialized: "never" }],
163
164
  "object-shorthand": [
164
165
  "error",
165
166
  "always",
@@ -283,6 +284,10 @@ const jsxA11yRules = {
283
284
  };
284
285
  const baseReactRules = {
285
286
  "react/exhaustive-deps": "warn",
287
+ "react/function-component-definition": ["error", {
288
+ namedComponents: ["arrow-function", "function-declaration"],
289
+ unnamedComponents: "arrow-function"
290
+ }],
286
291
  "react/jsx-boolean-value": "error",
287
292
  "react/jsx-curly-brace-presence": ["error", {
288
293
  children: "never",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhangyu1818/oxlint-config",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "Native Oxlint and Oxfmt config preset package",
5
5
  "keywords": [
6
6
  "oxc",
@@ -40,21 +40,21 @@
40
40
  "local-pkg": "^1.2.1"
41
41
  },
42
42
  "devDependencies": {
43
- "@types/node": "^26.1.1",
44
- "oxfmt": "^0.58.0",
45
- "oxlint": "^1.73.0",
46
- "oxlint-tsgolint": "^0.24.0",
47
- "tsdown": "^0.22.5",
43
+ "@types/node": "^26.2.0",
44
+ "oxfmt": "^0.63.0",
45
+ "oxlint": "^1.78.0",
46
+ "oxlint-tsgolint": "^7.0.2001",
47
+ "tsdown": "^0.22.14",
48
48
  "typescript": "^7.0.2",
49
49
  "vitest": "^4.1.10"
50
50
  },
51
51
  "peerDependencies": {
52
- "oxfmt": "^0.58.0",
53
- "oxlint": "^1.73.0",
54
- "oxlint-tsgolint": "^0.24.0"
52
+ "oxfmt": "^0.63.0",
53
+ "oxlint": "^1.78.0",
54
+ "oxlint-tsgolint": "^7.0.2001"
55
55
  },
56
56
  "engines": {
57
57
  "node": ">=24"
58
58
  },
59
- "packageManager": "pnpm@11.9.0"
59
+ "packageManager": "pnpm@11.21.0"
60
60
  }