26 lines
702 B
JavaScript
26 lines
702 B
JavaScript
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,
|
|
};
|