-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.prettierrc.js
37 lines (36 loc) · 866 Bytes
/
.prettierrc.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
35
36
37
/**
* @see https://prettier.io/docs/en/configuration.html
* @type {import("prettier").Config}
*/
const config = {
trailingComma: "es5",
tabWidth: 4,
semi: true,
singleQuote: false,
endOfLine: "lf",
overrides: [
{
files: ["*.json", "*.yaml", "*.yml", "*.md"],
options: {
tabWidth: 2,
},
},
],
plugins: ["@ianvs/prettier-plugin-sort-imports"],
importOrder: [
"^express$",
"^dotenv$",
"<BUILTIN_MODULES>",
"<THIRD_PARTY_MODULES>",
"^[./].*middleware\\.js$",
"^[./].*controller\\.js$",
"^[./].*route\\.js$",
"^[./].*service\\.js$",
"^[./]*utils/.*$",
"^[./].*validator\\.js$",
"^[./]*db/.*$",
"^[./].*logger\\.js$",
"^[./]",
],
};
export default config;