Spaces:
Sleeping
Sleeping
/** @type {import('prettier').Config} */ | |
module.exports = { | |
endOfLine: 'lf', | |
semi: true, | |
useTabs: true, | |
singleQuote: true, | |
arrowParens: 'avoid', | |
tabWidth: 2, | |
trailingComma: 'all', | |
bracketSpacing: true, | |
importOrder: [ | |
'^(react/(.*)$)|^(react$)', | |
'^(next/(.*)$)|^(next$)', | |
'<THIRD_PARTY_MODULES>', | |
'', | |
'^types$', | |
'^@/types/(.*)$', | |
'^@/config/(.*)$', | |
'^@/lib/(.*)$', | |
'^@/hooks/(.*)$', | |
'^@/components/ui/(.*)$', | |
'^@/components/(.*)$', | |
'^@/registry/(.*)$', | |
'^@/styles/(.*)$', | |
'^@/app/(.*)$', | |
'', | |
'^[./]', | |
], | |
importOrderSeparation: false, | |
importOrderSortSpecifiers: true, | |
importOrderBuiltinModulesToTop: true, | |
importOrderParserPlugins: ['typescript', 'jsx', 'decorators-legacy'], | |
importOrderMergeDuplicateImports: true, | |
importOrderCombineTypeAndValueImports: true, | |
} | |