@10stars/config 15.2.4 → 15.2.7
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/oxlint.config.browser.json +0 -2
- package/package.json +2 -2
- package/src/index.ts +4 -1
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
"react/exhaustive-deps": "off",
|
|
10
10
|
"@10stars/react-hooks/exhaustive-deps": ["warn", { "ignoreThisDependency": "always" }],
|
|
11
11
|
"react/display-name": "off",
|
|
12
|
-
"react/jsx-no-bind": "warn",
|
|
13
12
|
"react/jsx-no-target-blank": "error",
|
|
14
13
|
"react/no-children-prop": "off",
|
|
15
14
|
"react/no-unknown-property": [
|
|
@@ -18,7 +17,6 @@
|
|
|
18
17
|
"ignore": ["sx"]
|
|
19
18
|
}
|
|
20
19
|
],
|
|
21
|
-
"react/prop-types": "off",
|
|
22
20
|
"react/react-in-jsx-scope": "off"
|
|
23
21
|
}
|
|
24
22
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@10stars/config",
|
|
3
|
-
"version": "15.2.
|
|
3
|
+
"version": "15.2.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"bin": {
|
|
6
6
|
"config": "./src/index.ts"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
|
-
"prepublishOnly": "cd .. && bun run config typecheck && bun run config lint && bun run config --help"
|
|
20
|
+
"prepublishOnly": "cd .. && bun run config typecheck && bun run config lint && bunx oxlint --type-aware -c ./config/oxlint.config.browser.json */src */scripts */. --ignore-pattern '**/node_modules/**' --ignore-pattern '**/dist/**' && bun run config --help"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@10stars/oxlint-plugin-react-hooks": "^1.0.5",
|
package/src/index.ts
CHANGED
|
@@ -70,7 +70,10 @@ const actions = {
|
|
|
70
70
|
},
|
|
71
71
|
lint: {
|
|
72
72
|
info: `Format & Lint code (no watch)`,
|
|
73
|
-
action: async () =>
|
|
73
|
+
action: async () => {
|
|
74
|
+
exec(`bunx --bun oxfmt`) // split for better error tracing; --bun prevents ESM resolution issues
|
|
75
|
+
exec(`bunx --bun oxlint --fix --type-aware ${await getOxlintCommonCmd()}`)
|
|
76
|
+
},
|
|
74
77
|
},
|
|
75
78
|
precommit: {
|
|
76
79
|
info: `Run pre-commit hooks`,
|