FreeGpt / prettier.config.js
Daniton's picture
Duplicate from yxmnjxzx/chatbot-mini
5d4afba
raw
history blame
702 Bytes
module.exports = {
trailingComma: 'all',
singleQuote: true,
plugins: [
'prettier-plugin-tailwindcss',
'@trivago/prettier-plugin-sort-imports',
],
importOrder: [
'react', // React
'^react-.*$', // React-related imports
'^next', // Next-related imports
'^next-.*$', // Next-related imports
'^next/.*$', // Next-related imports
'^.*/hooks/.*$', // Hooks
'^.*/services/.*$', // Services
'^.*/utils/.*$', // Utils
'^.*/types/.*$', // Types
'^.*/pages/.*$', // Components
'^.*/components/.*$', // Components
'^[./]', // Other imports
'.*', // Any uncaught imports
],
importOrderSeparation: true,
importOrderSortSpecifiers: true,
};