leaysgur
1ccaf767d6
refactor(oxlint,oxfmt): Fix up apps/shared usage ( #22457 )
...
Final clean up.
- Share `isObject()` function
- Clean up directory structure
- Use `Error.cause` for TS hint error
2026-05-20 08:21:39 +00:00
leaysgur
1a752eab42
refactor(oxfmt): Use shared/loadViteConfigField ( #22455 )
...
Move `loadViteConfigField()` from Oxfmt to shared.
2026-05-20 08:21:38 +00:00
leaysgur
16b8058cd6
feat(oxfmt): Support vite-plus/resolveConfig for vite.config.ts ( #22454 )
...
Closes #21603 , fixes #21418
To simplify the review process, I'll first add support to Oxfmt.
In the next PR, I'll move that implementation to `shared`.
2026-05-20 08:21:37 +00:00
leaysgur
dcc6d38330
refactor(oxlint,oxfmt): Use shared/importJsConfig for js config ( #22453 )
...
Consolidate the following parts:
- Using native `import()`s
- Specifying `cacheKey`
- Extracting default exports
- Returning hints for TS incompatibility errors
2026-05-18 08:05:48 +00:00
leaysgur
7ac69fa3f7
refactor(oxfmt): Arrange cli/js_config dir ( #21078 )
...
- Add `/js_config/` dir
- Use inline tests
- Always return `Error` instance
2026-04-06 02:27:59 +00:00
camc314
35cf6e87c0
feat(oxfmt): add node version hint for ts config import failures ( #21046 )
...
Refs: #21032
2026-04-06 02:27:58 +00:00
leaysgur
89ce30b641
fix(oxlint,oxfmt): Redirect JS stdout to stderr for LSP ( #20321 )
...
Fixes #20320
(It's fine to release this as scheduled one)
2026-03-16 10:15:23 +00:00
leaysgur
68fb0d0f6c
fix(oxfmt): Skip vite.config.ts which fails to import ( #20326 )
...
If oxfmt.config.ts fails to load, it is the user's responsibility, so reporting it as an error is correct.
However, this does not apply to vite.config.ts, so we ignore it.
Also refactored to report error message from JS.
2026-03-13 14:24:37 +09:00
leaysgur
4ea67decf5
fix(oxlint,oxfmt): Skip vite.config.ts exports defineConfig(fn) ( #20260 )
...
`vite.config.ts` may return function from `defineConfig(({ mode }) => ({ ... }))`, but we can't evaluate.
Just skip it like no `.lint|fmt` config.
2026-03-12 04:56:57 +00:00
leaysgur
fdaca97be4
refactor(oxfmt): extract vite fmt config in JS loader ( #20257 )
...
Closes #20243
The same as #20256 , but for Oxfmt.
2026-03-12 04:14:27 +00:00
leaysgur
172fc072f3
feat(oxfmt): .js/.ts config file support ( #20135 )
...
Fixes #19711 , also resolves some of the demands for nested configs.
2026-03-11 04:34:48 +00:00