mirror of
https://github.com/sveltejs/svelte.git
synced 2024-11-22 03:47:27 +01:00
ef1b98f9d9
We need to use a different method for getting the meta info because `locate` is used to help construct the source map that references the preprocessed Svelte file. If we would now add source maps to that `locate` function it would go the the original source directly which means skipping potentially intermediate source maps which we would need in other situations. Sadly we can't map the character offset because for that we would need to the original source contents which we don't have in this context. fixes #8360 closes #8362
24 lines
401 B
Plaintext
24 lines
401 B
Plaintext
{
|
|
"useTabs": true,
|
|
"singleQuote": true,
|
|
"trailingComma": "none",
|
|
"printWidth": 100,
|
|
"plugins": ["prettier-plugin-svelte"],
|
|
"overrides": [
|
|
{
|
|
"files": ["*.svelte"],
|
|
"options": {
|
|
"bracketSameLine": false
|
|
}
|
|
},
|
|
{
|
|
"files": ["README.md", "packages/*/README.md", "**/package.json"],
|
|
"options": {
|
|
"useTabs": false,
|
|
"tabWidth": 2
|
|
}
|
|
}
|
|
],
|
|
"pluginSearchDirs": ["."]
|
|
}
|