@zhangyu1818/oxlint-config 2.2.0 → 2.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/dist/index.js +4 -0
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -40,6 +40,7 @@ const defaultIgnorePatterns = [
|
|
|
40
40
|
//#region src/oxlint/presets/imports.ts
|
|
41
41
|
const importRules = {
|
|
42
42
|
"import/first": "error",
|
|
43
|
+
"import/newline-after-import": "error",
|
|
43
44
|
"import/no-duplicates": ["error", { "prefer-inline": true }],
|
|
44
45
|
"import/no-mutable-exports": "error",
|
|
45
46
|
"import/no-named-default": "error",
|
|
@@ -304,6 +305,7 @@ const baseReactRules = {
|
|
|
304
305
|
"react/no-string-refs": "error",
|
|
305
306
|
"react/no-unknown-property": "error",
|
|
306
307
|
"react/no-unescaped-entities": "error",
|
|
308
|
+
"react/no-unstable-nested-components": "error",
|
|
307
309
|
"react/react-in-jsx-scope": "off",
|
|
308
310
|
"react/require-render-return": "error",
|
|
309
311
|
"react/rules-of-hooks": "error",
|
|
@@ -437,10 +439,12 @@ const unicornRules = {
|
|
|
437
439
|
"unicorn/error-message": "error",
|
|
438
440
|
"unicorn/escape-case": "error",
|
|
439
441
|
"unicorn/explicit-length-check": ["error", { "non-zero": "not-equal" }],
|
|
442
|
+
"unicorn/explicit-timer-delay": "error",
|
|
440
443
|
"unicorn/new-for-builtins": "error",
|
|
441
444
|
"unicorn/no-anonymous-default-export": "error",
|
|
442
445
|
"unicorn/no-await-expression-member": "error",
|
|
443
446
|
"unicorn/no-await-in-promise-methods": "error",
|
|
447
|
+
"unicorn/no-confusing-array-with": "error",
|
|
444
448
|
"unicorn/no-instanceof-builtins": "error",
|
|
445
449
|
"unicorn/no-new-array": "error",
|
|
446
450
|
"unicorn/no-new-buffer": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhangyu1818/oxlint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Native Oxlint and Oxfmt config preset package",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oxc",
|
|
@@ -40,18 +40,18 @@
|
|
|
40
40
|
"local-pkg": "^1.2.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@types/node": "^
|
|
44
|
-
"oxfmt": "^0.
|
|
45
|
-
"oxlint": "^1.
|
|
46
|
-
"oxlint-tsgolint": "^0.
|
|
47
|
-
"tsdown": "^0.22.
|
|
48
|
-
"typescript": "^
|
|
49
|
-
"vitest": "^4.1.
|
|
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",
|
|
48
|
+
"typescript": "^7.0.2",
|
|
49
|
+
"vitest": "^4.1.10"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"oxfmt": "^0.
|
|
53
|
-
"oxlint": "^1.
|
|
54
|
-
"oxlint-tsgolint": "^0.
|
|
52
|
+
"oxfmt": "^0.58.0",
|
|
53
|
+
"oxlint": "^1.73.0",
|
|
54
|
+
"oxlint-tsgolint": "^0.24.0"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": ">=24"
|