Skip to content

Instantly share code, notes, and snippets.

@jonathanconway
Created March 18, 2024 10:12
Show Gist options
  • Save jonathanconway/cec76da5fe85f4e94328d7c322aa5070 to your computer and use it in GitHub Desktop.
Save jonathanconway/cec76da5fe85f4e94328d7c322aa5070 to your computer and use it in GitHub Desktop.
Handy sensible defaults for prettier including import ordering and grouping
{
"tabWidth": 2,
"useTabs": false,
"singleQuote": false,
"importOrder": ["^[@]?[a-zA-Z]", "^[@/a-zA-Z]", "^../", "^./"],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"plugins": ["@trivago/prettier-plugin-sort-imports"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment