mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
build(script): force new lines for API props
This commit is contained in:
parent
69d51872a5
commit
3fe8da313d
1 changed files with 6 additions and 1 deletions
|
@ -5,7 +5,12 @@ import { format } from "prettier";
|
|||
import plugin from "prettier/plugins/typescript";
|
||||
|
||||
const formatTypeScript = async (value) => {
|
||||
return await format(value, { parser: "typescript", plugins: [plugin] });
|
||||
return await format(value, {
|
||||
parser: "typescript",
|
||||
plugins: [plugin],
|
||||
printWidth: 40, // Force breaking onto new lines
|
||||
bracketSameLine: false
|
||||
});
|
||||
};
|
||||
|
||||
console.time("formatComponentApi");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue