Download chakra-ui/packages/cli/src/utils/pretty.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 366 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/chakra-ui/packages/cli/src/utils/pretty.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/chakra-ui/packages/cli/src/utils/pretty.ts
-
curl -L -o pretty.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/chakra-ui/packages/cli/src/utils/pretty.ts
366 Bytes
| import { type Options, format } from "prettier" | |
| export function pretty(value: any, options: Options = {}) { | |
| return format(value, { | |
| parser: "typescript", | |
| bracketSpacing: true, | |
| jsxSingleQuote: false, | |
| printWidth: 160, | |
| proseWrap: "always", | |
| semi: false, | |
| singleQuote: false, | |
| tabWidth: 2, | |
| trailingComma: "all", | |
| ...options, | |
| }) | |
| } | |