Skip to content

Instantly share code, notes, and snippets.

@feliperdamaceno
Last active August 3, 2025 22:25
Show Gist options
  • Select an option

  • Save feliperdamaceno/39258d9e68484491b98a61092b6f549f to your computer and use it in GitHub Desktop.

Select an option

Save feliperdamaceno/39258d9e68484491b98a61092b6f549f to your computer and use it in GitHub Desktop.
{
"singleQuote": true,
"tabWidth": 2,
"semi": false,
"endOfLine": "lf",
"trailingComma": "none",
"bracketSpacing": true,
"arrowParens": "always",
"proseWrap": "always",
"importOrder": [
"^react$",
"^next$",
"^@angular$",
"",
"<TYPES>^(node:)",
"<TYPES>",
"<TYPES>^[.]",
"",
"<BUILTIN_MODULES>",
"",
"<THIRD_PARTY_MODULES>",
"",
"^(@/|#)(components|pages)(/.*)?$",
"",
"^(@/|#)(constants|config)(/.*)?$",
"",
"^(@/|#)(util|utils|helper|helpers)(/.*)?$",
"",
"^(@/|#).*$",
"",
"^[.]"
],
"importOrderCaseSensitive": true,
"importOrderParserPlugins": ["typescript", "decorators-legacy"],
"cssDeclarationSorterOrder": "smacss",
"plugins": [
"@ianvs/prettier-plugin-sort-imports",
"prettier-plugin-css-order"
]
}

Make sure to install these prettier plugins:

  • @ianvs/prettier-plugin-sort-imports
  • prettier-plugin-css-order
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment