@alexgorbatchev/typescript-ai-policy 1.0.5 → 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
@@ -150,7 +150,10 @@ 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 `*.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.
154
157
 
155
158
  When you run Oxlint manually, use Bun to launch the CLI:
156
159
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexgorbatchev/typescript-ai-policy",
3
- "version": "1.0.5",
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: {
@@ -82,6 +96,12 @@ const DEFAULT_OXLINT_CONFIG = defineConfig({
82
96
  "@alexgorbatchev/hook-test-file-convention": "error",
83
97
  },
84
98
  },
99
+ {
100
+ files: ["**/oxlint.config.ts", "**/oxfmt.config.ts"],
101
+ rules: {
102
+ "import/no-default-export": "off",
103
+ },
104
+ },
85
105
  {
86
106
  files: ["**/index.{ts,tsx}"],
87
107
  rules: {