generated from solidjs-community/solid-lib-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prettierrc.cjs
30 lines (30 loc) · 876 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: "./dev/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",
},
},
],
};