metamask-docs icon indicating copy to clipboard operation
metamask-docs copied to clipboard

Look into Prettier formatting for code samples

Open alexandratran opened this issue 1 year ago • 1 comments

Look into using Prettier for formatting the code samples in all Markdown files. May have to use a specific configuration to not lose certain Markdown formats we use (e.g., line breaks at a certain column limit). See the code guidelines used in https://github.com/MetaMask/metamask-docs/pull/1116.

Edit: We want to revert back to 2 space indents instead of 4 across the docs.

Edit 2: Installing eslint-plugin-markdown is blocked by requiring Node v18+. We need to update Docusaurus first (#1048).

alexandratran avatar Feb 05 '24 21:02 alexandratran

@alexandratran For snap and wallet, code formatting is already done. For the Service section and a few other markdown files, shall I do the code formatting?

subhamkumarr avatar Feb 16 '24 12:02 subhamkumarr