You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// eslint.config.js (organized with VS Code)import{includeIgnoreFile}from'@eslint/compat';importjsfrom'@eslint/js';importprettierfrom'eslint-config-prettier';
Not sure if or how this would properly be doable. One thought I had was to add this sorting to esrap, but in case sv is adding to an existing file, this might completely destroy the user provided order.
A simpler idea would just be to order the import calls in our source code here:
What happens if we're just modifying an existing file and the imports are not already ordered alphabetically? Would we just indiscriminately rearrange their imports (which would be a bit rude)? We'd also have to consider the possible side-effects of those existing imports.
I just don't think this feature would be worth the effort.
Things I do after scaffolding a project include manually saving
*.js
and*.ts
files. With this setting enabled on VS Code:ESLint, Vite configs and other files get their import sorted. For example:
I believe prettier-plugin-sort-imports uses the same order.
The text was updated successfully, but these errors were encountered: