-
-
Notifications
You must be signed in to change notification settings - Fork 105
/
.prettierrc.js
42 lines (42 loc) · 988 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
38
39
40
41
42
/** @type {import("prettier").Config} */
export default {
useTabs: true,
singleQuote: true,
trailingComma: 'none',
printWidth: 100,
plugins: ['prettier-plugin-svelte'],
overrides: [
{
files: '**/*.svx',
options: { parser: 'markdown' }
},
{
files: '**/*.ts',
options: { parser: 'typescript' }
},
{
files: [
'**/CHANGELOG.md',
'.github/renovate.json5',
'**/types/index.d.ts',
'**/types/index.d.ts.map',
'**/pnpm-lock.yaml',
'.changeset/pre.json',
'**/vite.config.js.timestamp-*.mjs',
'packages/e2e-tests/dynamic-compile-options/src/components/A.svelte',
'packages/playground/big/src/pages/**', // lots of generated files
'packages/e2e-tests/scan-deps/src/Svelte*.svelte' // various syntax tests that require no format
],
options: {
rangeEnd: 0
}
},
{
files: ['**/package.json', '**/README.md', 'docs/**/*.md', '.changeset/pre.json'],
options: {
useTabs: false,
tabWidth: 2
}
}
]
};