generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.prettierrc.cjs
30 lines (30 loc) · 878 Bytes
/
.prettierrc.cjs
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
module.exports = {
plugins: [
require.resolve("prettier-plugin-packagejson"),
require.resolve("@trivago/prettier-plugin-sort-imports"),
require.resolve("prettier-plugin-tailwindcss"), // must come last
],
// pluginSearchDirs: false, // for prettier-plugin-tailwindcss to work with other plugins
// @see https://github.com/tailwindlabs/prettier-plugin-tailwindcss#resolving-your-tailwind-configuration
// tailwindConfig: "./tailwind.config.cjs",
// @see https://github.com/trivago/prettier-plugin-sort-imports
importOrder: [
"^react$",
"<THIRD_PARTY_MODULES>",
// Internal modules
"^@app/(.*)$",
// TypeScript TSConfig path aliases
"^@/(.*)$",
// Relative imports
"^[./]",
],
importOrderSortSpecifiers: true,
overrides: [
{
files: "*.svg",
options: {
parser: "html",
},
},
],
};