Release 2.0.0
- Added
--ignore-unknownflag support so sortier can return an exit code of 0 on files it doesn't support. For those using lint-staged, your config can be simplified to something like:{ "*": ["prettier --ignore-unknown --write", "sortier --ignore-unknown"] } - Better console output now prints each matched file, any errors if encountered, and the time it takes to sort that file. For example running
sortier "*{package,sortier}*"in this repository prints:.sortierignore - No parser could be inferred - 2ms .sortierrc.cjs - 28ms package.json - 23ms - Breaking
- Fixed dot files being skipped
formatFilethrows an error when run on an ignored filepath- Dropped support for node 12 and 14, only support >=16