2 Star 1 Fork 0

Svelte/vite-plugin-svelte

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.prettierrc.js 988 Bytes
一键复制 编辑 原始数据 按行查看 历史
/** @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
}
}
]
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_sveltejs/vite-plugin-svelte.git
[email protected]:mirrors_sveltejs/vite-plugin-svelte.git
mirrors_sveltejs
vite-plugin-svelte
vite-plugin-svelte
main

搜索帮助