chore: migrate to oxlint#17596
Conversation
|
|
|
Oh, yeah |
|
Thanks for the pointer! Got it working now. There are a few plugins we use that aren't currently supported:
I don't think these are reason enough by themselves not to migrate, but worth flagging. I needed to add one /^(?:\p{Lu}[$\u200c\u200d\p{ID_Continue}.]*|\p{ID_Start}[$\u200c\u200d\p{ID_Continue}]*(?:\.[$\u200c\u200d\p{ID_Continue}]+)+)$/u...but Oxlint isn't. Other than that:
|
| "svelte/system": "error", | ||
| "svelte/valid-each-key": "error", | ||
| "svelte/valid-prop-names-in-kit-pages": "error", | ||
| "unicorn/no-await-in-promise-methods": "off", |
There was a problem hiding this comment.
These weren't mentioned in the eslint.config.js. Perhaps they don't work in oxlint and that's why they're disabled here? Maybe add a TODO to re-enable them?
| "no-unreachable": "error", | ||
| "no-unused-vars": "off", | ||
| "no-useless-rename": "off", | ||
| "svelte/comment-directive": "error", |
There was a problem hiding this comment.
I'm guessing these come from plugin:svelte/recommended? Maybe we could just set that instead?
| "eslint-plugin-lube": "^0.4.3", | ||
| "eslint-plugin-svelte": "^3.11.0", | ||
| "jsdom": "25.0.1", | ||
| "oxlint": "^1.42.0", |
There was a problem hiding this comment.
It looks like this won't be implemented and is superseded by strict mode: oxc-project/oxc#479
It looks like this won't be implemented and is superseded by strict mode: oxc-project/oxc#479
It looks like this won't be implemented and we should switch to |
|
It looks like the The migration tool seems to have made it a bit hard to follow things. I wonder if it might be easier to just start from scratch and manually migrate |
This is fixed in main now, will be released on Monday 🫡 |
There was a problem hiding this comment.
I'm super eager to migrate, but personally I'm not sure it's time yet
Digging into this there seems to be a few big issues we're hitting:
- we can't extend our common config: oxc-project/oxc#15538
- the built-in rules don't currently have support for
recommended: oxc-project/oxc#12018 - plugins don't yet have support for
recommended: oxc-project/oxc#14826 (comment)
And while not a blocker for this repo specifically, quite a number of community projects will be blocked by the lack of TypeScript support in .svelte files: oxc-project/oxc#14826 (comment)
I'd personally close the PR and file a tracking issue linking to those issues. I can't wait though 😄
This isn't ready for prime-time but I figured I'd try and see what would be involved in migrating. After installing
oxlintI ran this command to generate the.oxlintrc.json:pnpm oxlintthen failed withso I installed it, then
so I installed it, then
and at that point I tapped out