-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
33 lines (31 loc) · 1.04 KB
/
index.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
/**
* Copyright (c) 2018-present, Guestline, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
module.exports = {
useTabs: false,
printWidth: 100,
tabWidth: 2,
singleQuote: true,
trailingComma: 'none',
bracketSameLine: false,
semi: true,
importOrder: [
'^\\u0000', // Matches all side-effect imports
'^\\./init$', // Matches './init' specifically
'^init\\.js$', // Matches 'init.js'
'^style\\.css$', // Matches 'style.css'
'^\\./.*\\.css$', // Matches relative CSS imports like './style.css'
'<THIRD_PARTY_MODULES>', // Third-party modules
'^@(mui|emotion)/(.*)$', // MUI and Emotion imports
'^@(.*)/(.*)$', // Aliased imports
'^[./]', // Relative imports
],
importOrderSeparation: true,
importOrderSortSpecifiers: true,
importOrderCaseInsensitive: true,
plugins: ['@trivago/prettier-plugin-sort-imports'],
};