@savvy-web/silk 3.7.2 → 3.7.4

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/biome/silk.jsonc CHANGED
@@ -61,7 +61,17 @@
61
61
  "useImportExtensions": {
62
62
  "level": "error",
63
63
  "options": {
64
- "forceJsExtensions": true
64
+ // forceJsExtensions rewrote EVERY import to `.js`, including correct
65
+ // `.json` asset imports (breaking resolution — see systems#359 and
66
+ // upstream biomejs/biome#7734). extensionMappings only rewrites the
67
+ // listed source extensions; unmapped extensions (json, css, ...) keep
68
+ // the imported file's real extension.
69
+ "extensionMappings": {
70
+ "cts": "cjs",
71
+ "mts": "mjs",
72
+ "ts": "js",
73
+ "tsx": "js"
74
+ }
65
75
  }
66
76
  },
67
77
  "noUnresolvedImports": "off"
@@ -127,25 +137,6 @@
127
137
  }
128
138
  }
129
139
  }
130
- },
131
- {
132
- "includes": ["**/*.tsx"],
133
- "linter": {
134
- "rules": {
135
- "correctness": {
136
- "useImportExtensions": {
137
- "level": "on",
138
- "options": {
139
- "extensionMappings": {
140
- "ts": "js",
141
- "tsx": "js",
142
- "css": "css"
143
- }
144
- }
145
- }
146
- }
147
- }
148
- }
149
140
  }
150
141
  ],
151
142
  "root": true,