-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprettier.config.js
34 lines (34 loc) · 1012 Bytes
/
prettier.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module.exports = {
trailingComma: 'all',
singleQuote: true,
tabWidth: 2,
semi: true,
useTabs: false,
quoteProps: 'consistent',
arrowParens: 'always',
printWidth: 90,
plugins: ['prettier-plugin-tailwindcss', '@trivago/prettier-plugin-sort-imports'],
importOrder: [
'^next', // Next-related imports
'^next-.*$', // Next-related imports
'^next/.*$', // Next-related imports
'react', // React
'^react-.*$', // React-related imports
'^@/theme/.*$', // Theme
'^@/content/.*$', // Contents
'^@/contexts/.*$', // Contexts
'^@/hooks/.*$', // Hooks
'^@/hocs/.*$', // HOCs
'^@/pages/.*$', // Pages
'^@/components/.*$', // Components
'^@/config/.*$', // Configs
'^@/config/api/.*$', // Api
'^@/config/helpers/.*$', // Helpers
'^@/config/constants/.*$', // Constants
'^@/config/types/.*$', // Types
'^[./]', // Other imports
'.*', // Any uncaught imports
],
importOrderSeparation: true,
importOrderSortSpecifiers: true,
};