forked from epam/ai-dial-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprettier.config.js
More file actions
33 lines (33 loc) · 983 Bytes
/
prettier.config.js
File metadata and controls
33 lines (33 loc) · 983 Bytes
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
module.exports = {
trailingComma: 'all',
singleQuote: true,
plugins: [
'@trivago/prettier-plugin-sort-imports',
'prettier-plugin-tailwindcss',
],
tailwindFunctions: ['classnames', 'classNames'],
importOrder: [
'react', // React
'^react-.*$', // React-related imports
'^next', // Next-related imports
'^next-.*$', // Next-related imports
'^next/.*$', // Next-related imports
'.*next$', // Next-related imports
'^rxjs', // rxjs imports
'^@reduxjs/.*$', // rxjs imports
'^redux-observable$', // rxjs imports
'^classnames$',
'^.*/hooks/.*$', // Hooks
'^.*/services/.*$', // Services
'^.*/utils/.*$', // Utils
'^.*/types/.*$', // Types
'^.*/store/.*$', // Store
'^.*/constants/.*$', // Constants
'^.*/pages/.*$', // Pages
'^.*/components/.*$', // Components
'^[./]', // Other imports
'.*', // Any uncaught imports
],
importOrderSeparation: true,
importOrderSortSpecifiers: true,
};