Skip to content

Release 2.0.0

Choose a tag to compare

@github-actions github-actions released this 10 Feb 09:34
· 1009 commits to main since this release
  • Added --ignore-unknown flag 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
    • formatFile throws an error when run on an ignored filepath
    • Dropped support for node 12 and 14, only support >=16