mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-20 00:33:07 +01:00
13 lines
327 B
TypeScript
13 lines
327 B
TypeScript
import prettier from 'prettier';
|
|
|
|
export const getPrettierConfig = async () => {
|
|
const prettierConfigPath = await prettier.resolveConfigFile();
|
|
const prettierConfig = {
|
|
...(await prettier.resolveConfig(prettierConfigPath!)),
|
|
parser: 'json',
|
|
printWidth: 50,
|
|
};
|
|
|
|
return prettierConfig;
|
|
};
|