@zhangyu1818/oxlint-config 2.1.0 → 2.1.1
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 +2 -2
- package/package.json +14 -13
package/dist/index.js
CHANGED
|
@@ -705,8 +705,8 @@ function defineOxlintConfig(options = {}) {
|
|
|
705
705
|
defaultOxlintPresets.react
|
|
706
706
|
);
|
|
707
707
|
const reactAgentRulesPreset = resolveRulePreset(
|
|
708
|
-
presets
|
|
709
|
-
|
|
708
|
+
options.presets?.reactAgentRules,
|
|
709
|
+
reactPreset.enabled
|
|
710
710
|
);
|
|
711
711
|
const testPreset = resolveRulePreset(presets.test, defaultOxlintPresets.test);
|
|
712
712
|
const typeScriptPreset = resolveRulePreset(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhangyu1818/oxlint-config",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Native Oxlint and Oxfmt config preset package",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oxc",
|
|
@@ -25,6 +25,17 @@
|
|
|
25
25
|
"import": "./dist/index.js"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "tsup",
|
|
30
|
+
"format": "oxfmt -c oxfmt.config.ts .",
|
|
31
|
+
"format:check": "oxfmt --check -c oxfmt.config.ts .",
|
|
32
|
+
"lint": "oxlint -c oxlint.config.ts",
|
|
33
|
+
"lint:fix": "oxlint --fix -c oxlint.config.ts",
|
|
34
|
+
"test": "vitest --run",
|
|
35
|
+
"test:smoke": "node tests/package-smoke.mjs",
|
|
36
|
+
"test:watch": "vitest",
|
|
37
|
+
"tsc:check": "tsc"
|
|
38
|
+
},
|
|
28
39
|
"dependencies": {
|
|
29
40
|
"local-pkg": "^1.2.1"
|
|
30
41
|
},
|
|
@@ -45,15 +56,5 @@
|
|
|
45
56
|
"engines": {
|
|
46
57
|
"node": ">=24"
|
|
47
58
|
},
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
"format": "oxfmt -c oxfmt.config.ts .",
|
|
51
|
-
"format:check": "oxfmt --check -c oxfmt.config.ts .",
|
|
52
|
-
"lint": "oxlint -c oxlint.config.ts",
|
|
53
|
-
"lint:fix": "oxlint --fix -c oxlint.config.ts",
|
|
54
|
-
"test": "vitest --run",
|
|
55
|
-
"test:smoke": "node tests/package-smoke.mjs",
|
|
56
|
-
"test:watch": "vitest",
|
|
57
|
-
"tsc:check": "tsc"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
59
|
+
"packageManager": "pnpm@11.2.2"
|
|
60
|
+
}
|