refactor: use pathe instead of node:path in core and plugins - #3353
refactor: use pathe instead of node:path in core and plugins#3353kovsu wants to merge 2 commits into
Conversation
Replaces every `node:path` / `node:path/posix` import in core, utils, typescript-language, ts, yaml, spelling and rule-tester with `pathe`, which always emits POSIX separators and accepts Windows input. `normalizePath` no longer needs its manual backslash replacement since `pathe.normalize` already does that; a test pins the one observable difference (lowercase drive letters are uppercased). `pathe` is pinned once in a new `prod` pnpm catalog and referenced as `catalog:prod` from each package. Refs flint-fyi#1269
|
✅ Deploy Preview for flint-fyi ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
@flint.fyi/astro
@flint.fyi/astro-language
@flint.fyi/browser
@flint.fyi/cli
@flint.fyi/core
@flint.fyi/css
@flint.fyi/css-language
flint
@flint.fyi/json
@flint.fyi/json-language
@flint.fyi/jsx
@flint.fyi/markdown-language
@flint.fyi/md
@flint.fyi/next
@flint.fyi/node
@flint.fyi/nuxt
@flint.fyi/package-json
@flint.fyi/performance
@flint.fyi/plugin-flint
@flint.fyi/react
@flint.fyi/rule-data
@flint.fyi/rule-tester
@flint.fyi/solid
@flint.fyi/spelling
@flint.fyi/svelte
@flint.fyi/svelte-language
@flint.fyi/text-language
@flint.fyi/ts
@flint.fyi/ts-patch
@flint.fyi/typescript-language
@flint.fyi/utils
@flint.fyi/vitest
@flint.fyi/volar-language
@flint.fyi/vue
@flint.fyi/vue-language
@flint.fyi/yaml
@flint.fyi/yaml-language
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
This PR needs a description |
Emm, I didn't do anything especially here. I don't think I need a description here, you can get what I do in the PR's title. |
But it's a courtesy to reviewers. Without a description then you're putting it on their shoulders to determine the motivation and nature of the change on their own. A description gives you the opportunity to explain the change and what you think they should know about the change. I've said previously, I don't plan on review changes without a PR description. So, I guess I'll let others review this one 🤷♂️ |
|
It's also in our contributing guidelines
And I would encourage all maintainers to hold the same line. Having empty PRs descriptions puts everything on the shoulders of the reviewer to figure out and is not a precedent I would like for us to set. |
Agreed that it would be objectively worse to leave the agent description in (and also against our AI Contribution guidelines)
But that's not what's important. I can see in the diff that you've swapped |


PR Checklist
node:imports from core, plugins #1269status: accepting prsOverview