@alexgorbatchev/typescript-ai-policy 1.0.6 → 1.0.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/README.md CHANGED
@@ -151,8 +151,9 @@ 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
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
+ Oxlint config also force-disables `import/no-default-export` for `*.stories.tsx`, `oxlint.config.ts`, and
155
+ `oxfmt.config.ts`, because Storybook CSF stories require a default-exported meta object and Oxlint/Oxfmt document
156
+ those TypeScript config entrypoints as default-exported modules.
156
157
 
157
158
  When you run Oxlint manually, use Bun to launch the CLI:
158
159
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexgorbatchev/typescript-ai-policy",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Shared TypeScript AI policy configs and Oxlint rules",
5
5
  "homepage": "https://github.com/alexgorbatchev/typescript-ai-policy#readme",
6
6
  "repository": {
@@ -67,6 +67,10 @@ const DEFAULT_OXLINT_CONFIG = defineConfig({
67
67
  rules: {
68
68
  "@alexgorbatchev/testid-naming-convention": "off",
69
69
  "@alexgorbatchev/require-component-root-testid": "off",
70
+ "@alexgorbatchev/component-file-contract": "off",
71
+ "@alexgorbatchev/component-file-naming-convention": "off",
72
+ "@alexgorbatchev/component-story-file-convention": "off",
73
+ "import/no-default-export": "off",
70
74
  "@alexgorbatchev/story-file-location-convention": "error",
71
75
  "@alexgorbatchev/story-meta-type-annotation": "error",
72
76
  "@alexgorbatchev/story-export-contract": "error",
@@ -74,6 +78,16 @@ const DEFAULT_OXLINT_CONFIG = defineConfig({
74
78
  "@alexgorbatchev/fixture-import-path-convention": "error",
75
79
  },
76
80
  },
81
+ {
82
+ files: ["**/*.test.tsx"],
83
+ rules: {
84
+ "@alexgorbatchev/testid-naming-convention": "off",
85
+ "@alexgorbatchev/require-component-root-testid": "off",
86
+ "@alexgorbatchev/component-file-contract": "off",
87
+ "@alexgorbatchev/component-file-naming-convention": "off",
88
+ "@alexgorbatchev/component-story-file-convention": "off",
89
+ },
90
+ },
77
91
  {
78
92
  files: ["**/use[A-Z]*.ts", "**/use[A-Z]*.tsx", "**/use-*.ts", "**/use-*.tsx"],
79
93
  rules: {