You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable "useTabs" by default (is this controversial?)
Transition to v3 plugin API
Refactor code adapted from prettier core
Crate
The prettier crate should provide a cargo fmt equivalent and a rudimentary API to use prettier in Rust.
Provide a command (cargo prettier? see prettier plugin ruby for reference)
Simple API to interface with prettier (e.g. prettier::format(&str, prettier::Config { .. }))
Investigate a way to version-control prettier & plugins from Cargo.toml (e.g. temp package.json in dev build directory?)
Investigate a way to config prettier from Cargo.toml (under [package.metadata.prettier])
Extension
I wish this project didn't need an extension, but the official Prettier extension only supports loading plugins from npm modules. Installing and updating npm modules requires manually running shell commands, and my proposal to automate that process has been denied.
Prettier core through its plugin system was designed to be universal. In practice however, its CLI and Editor integration are primarily focused on the javascript ecosystem. Publishing a "Prettier Rust" extension is the only ergonomic way to accomodate for the Rust ecosystem.
Support "format selection"
Support .prettierignore + alert when formatting fails because of it
Investigate and document a rustfmt config that is compatible with prettier's output
Handle internal extension errors
Write tests
Miscellaneous
Playground website to reproduce issues online
Setup CI tests for PRs
Setup CI publishing (package, extension, crate)
The text was updated successfully, but these errors were encountered:
Roadmap 1.0.0
This is the full list of features the project is missing before a full release. Open to suggestions.
Contributions are most welcome. 🤗
Formatting
jinx-rust
)![expr; type]
matches!
if_chain!
cfg_if!
Crate
The
prettier
crate should provide acargo fmt
equivalent and a rudimentary API to use prettier in Rust.cargo prettier
? see prettier plugin ruby for reference)prettier::format(&str, prettier::Config { .. })
)Cargo.toml
(e.g. temppackage.json
in dev build directory?)Cargo.toml
(under[package.metadata.prettier]
)Extension
I wish this project didn't need an extension, but the official Prettier extension only supports loading plugins from npm modules. Installing and updating npm modules requires manually running shell commands, and my proposal to automate that process has been denied.
Prettier core through its plugin system was designed to be universal. In practice however, its CLI and Editor integration are primarily focused on the javascript ecosystem. Publishing a "Prettier Rust" extension is the only ergonomic way to accomodate for the Rust ecosystem.
.prettierignore
+ alert when formatting fails because of itMiscellaneous
The text was updated successfully, but these errors were encountered: