-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.prettierrc.js
More file actions
25 lines (23 loc) · 770 Bytes
/
.prettierrc.js
File metadata and controls
25 lines (23 loc) · 770 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
/** @typedef {import("@ianvs/prettier-plugin-sort-imports").PluginConfig} SortImportsConfig*/
/** @typedef {import("prettier").Config} PrettierConfig*/
/** @type { PrettierConfig | SortImportsConfig } */
const config = {
arrowParens: "always",
bracketSameLine: true,
bracketSpacing: true,
embeddedLanguageFormatting: "auto",
htmlWhitespaceSensitivity: "css",
importOrder: ["___", "__", "<THIRD_PARTY_MODULES>", "^[./]"],
jsxSingleQuote: false,
printWidth: 120,
proseWrap: "preserve",
quoteProps: "consistent",
semi: true,
useTabs: true,
trailingComma: "all",
vueIndentScriptAndStyle: true,
tabWidth: 2,
singleQuote: false,
plugins: [require.resolve("@ianvs/prettier-plugin-sort-imports"), "prettier-plugin-tailwindcss"],
};
module.exports = config;