-
Notifications
You must be signed in to change notification settings - Fork 1
/
.prettierrc.cjs
31 lines (28 loc) · 1.14 KB
/
.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
31
// Documentation for this file: https://prettier.io/docs/en/configuration.html
module.exports = {
// We use a larger print width because Prettier's word-wrapping seems to be tuned
// for plain JavaScript without type annotations
printWidth: 110,
// Use .gitattributes to manage newlines
endOfLine: 'auto',
// Use single quotes instead of double quotes
singleQuote: true,
// For ES5, trailing commas cannot be used in function parameters; it is counterintuitive
// to use them for arrays only
trailingComma: 'none',
semi: true,
bracketSpacing: true,
bracketLint: false,
overrides: [{ files: '*.svelte', options: { parser: 'svelte' } }],
plugins: [
'./common/autoinstallers/rush-prettier/node_modules/prettier-plugin-svelte',
'./common/autoinstallers/rush-prettier/node_modules/prettier-plugin-packagejson'
// // MUST come last, also this doesn't work yet
// './common/autoinstallers/rush-prettier/node_modules/prettier-plugin-tailwindcss'
],
pluginSearchDirs: false,
svelteSortOrder: 'options-scripts-markup-styles',
svelteStrictMode: true,
svelteAllowShorthand: false,
svelteIndentScriptAndStyle: false
};