- Explicitly set case sensitivity & sort uppercase before lowercase (#31)
- Fix semicolons being added to end of import specifiers after sorting (#29)
- Fix bug with grouping when settings are not explicitly defined (#27)
- Add new
specifier-order
rule for sorting named imports (#25)
-
Remove deprecated settings (#18)
import-sorting/known-framework
should be changed toimport-sorting/framework-patterns
import-sorting/known-first-party
should be changed toimport-sorting/internal-patterns
- Group unassigned imports at the top (#18) Unassigned imports are grouped together, but not sorted in case of potential side-effects.
- Include Bun runtime modules in
builtin
group (#18) Since some builtin modules require abun:
ornode:
protocol prefix while others do not, sorting ignores the protocol prefix. (Including it consistently is recommended) - Include additional extensions in
style
group (#18) Thestyle
group now matches imports of Less, Sass, Stylus, and more.
- Export ESM and types (#21) Plugin is exported as ESM and CJS, and includes type declarations as well.
-
Deprecate plugin settings (#19) The next major version of the plugin will use
import-sorting/framework-patterns
instead ofknown-framework
import-sorting/internal-patterns
instead ofknown-first-party
- Allow array values for plugin settings (#14) Settings options now accept an array of pattern strings, instead of only a single, more convoluted, RegExp string. Closes #8
- Sort numerals in path strings naturally (#11)
Now ensures that
10
will sort after2
, for example.
- Fix local import sort order when dot segment count is the same (#11) Sorting will now take the entire path into account, instead of just the basename of the path.
- Add
engines
key to indicate minimum Node version (#12)
- Fix error when plugin settings are undefined (#9)
-
Update export and build strategy (#6)
Should fix issues with plugin being unable to load, or rule definitions not being found.
- Add guard against non-string
settings
values (#3)
Thanks @jakubpelczarclari!
- Initial release 🎉
55c18d1