@alexgorbatchev/typescript-ai-policy 1.0.5 → 1.0.6
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/README.md +3 -1
- package/package.json +1 -1
- package/src/oxlint/createOxlintConfig.ts +6 -0
package/README.md
CHANGED
|
@@ -150,7 +150,9 @@ config object, and that object is deep-merged **before** the shared defaults so
|
|
|
150
150
|
conflicting keys.
|
|
151
151
|
|
|
152
152
|
For Oxlint specifically, consumer configs are extension-only: if the callback tries to redefine any shared rule name,
|
|
153
|
-
the factory throws with guidance to change the shared package instead of overriding that rule downstream.
|
|
153
|
+
the factory throws with guidance to change the shared package instead of overriding that rule downstream. The shared
|
|
154
|
+
Oxlint config also force-disables `import/no-default-export` for `oxlint.config.ts` and `oxfmt.config.ts`, because
|
|
155
|
+
Oxlint and Oxfmt document those TypeScript config entrypoints as default-exported modules.
|
|
154
156
|
|
|
155
157
|
When you run Oxlint manually, use Bun to launch the CLI:
|
|
156
158
|
|
package/package.json
CHANGED
|
@@ -82,6 +82,12 @@ const DEFAULT_OXLINT_CONFIG = defineConfig({
|
|
|
82
82
|
"@alexgorbatchev/hook-test-file-convention": "error",
|
|
83
83
|
},
|
|
84
84
|
},
|
|
85
|
+
{
|
|
86
|
+
files: ["**/oxlint.config.ts", "**/oxfmt.config.ts"],
|
|
87
|
+
rules: {
|
|
88
|
+
"import/no-default-export": "off",
|
|
89
|
+
},
|
|
90
|
+
},
|
|
85
91
|
{
|
|
86
92
|
files: ["**/index.{ts,tsx}"],
|
|
87
93
|
rules: {
|