vision-agent / prettier.config.cjs
MingruiZhang's picture
chatgpt-4v
52b4c36
raw
history blame
857 Bytes
/** @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,
}