prettier-plugin-motoko icon indicating copy to clipboard operation
prettier-plugin-motoko copied to clipboard

A code formatter for the Motoko smart contract language.

Results 17 prettier-plugin-motoko issues
Sort by recently updated
recently updated
newest added

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 3.2.8 to 3.2.10. Changelog Sourced from vite's changelog. 3.2.10 (2024-03-24) 3.2.9 (2024-03-24) fix: port #15653 to v3 (#15655) (99080ca), closes #15653 #15655 fix: port #16250 to v3...

dependencies

Bumps [postcss](https://github.com/postcss/postcss) from 8.4.24 to 8.4.31. Release notes Sourced from postcss's releases. 8.4.31 Fixed \r parsing to fix CVE-2023-44270. 8.4.30 Improved source map performance (by @​romainmenke). 8.4.29 Fixed Node#source.offset (by...

dependencies

Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.5 to 7.23.2. Release notes Sourced from @​babel/traverse's releases. v7.23.2 (2023-10-11) NOTE: This release also re-publishes @babel/core, even if it does not appear in the linked release...

dependencies

1. Do not insert final newline 2. Do not wrap function call arguments 3. Do not remove space between case arg and body with no `{}` (this looks like a...

In my tests, I had an object formatted such that each property was on a new line and then the formatter did this to it 😅 ``` M.equals(testableItemGetTransactionsResult({ results =...

# Motoko Formatter This document outlines the functional requirements and release timeline for the first version of the official Motoko code formatter. ## Abstract A code formatter converts source code...

``` canisters : HashMap.HashMap< // The principal of the canister. Principal, // The configuration of the canister. CanisterConfig >; ``` becomes ``` canisters : HashMap.HashMap;` ```

This was motoko code generated by Go. I try and make the generator as close to the prettified output as possible. ![image](https://user-images.githubusercontent.com/84897664/194167679-0db47ec3-ad04-4bae-a81b-28befc70be24.png) so then I put a newline after update(,...

Convert `//!` to `/// `, so the user doesn't have to think about that. E.g. `//!` is used in [BitcoinWallet.mo](https://github.com/dfinity/examples/blob/master/motoko/basic_bitcoin/src/basic_bitcoin/src/BitcoinWallet.mo#L1)

After a comment marker (`//`) at least one space should be inserted to improve readability. Additional spaces should be preserved. Examples: - `//some comment` would be formatted as `// some...