Last active
November 5, 2025 02:17
-
-
Save rbika/cea779f7c185366a631e5538e1990e78 to your computer and use it in GitHub Desktop.
Prettier config - frontend
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @see https://prettier.io/docs/configuration | |
| * @type {import("prettier").Config} | |
| */ | |
| const config = { | |
| plugins: [ | |
| '@ianvs/prettier-plugin-sort-imports', | |
| 'prettier-plugin-tailwindcss', | |
| ], | |
| // General options | |
| semi: false, | |
| singleQuote: true, | |
| // @ianvs/prettier-plugin-sort-imports options | |
| importOrder: [ | |
| '^react$|^react/(.*)$', | |
| '^next$|^(next/(.*))$', | |
| '', | |
| '<THIRD_PARTY_MODULES>', | |
| '', | |
| '^@/(.*)$', | |
| '^[./]', | |
| ], | |
| importOrderParserPlugins: ['typescript', 'jsx', 'decorators-legacy'], | |
| // prettier-plugin-tailwindcss options | |
| tailwindFunctions: ['clsx', 'cva', 'cn'], | |
| } | |
| export default config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment