oxc/crates/oxc_prettier
Deivid Almeida c1cfd1759e
feat(linter): no-irregular-whitespace rule (#1835)
Parser, trivias and trivias_builder were edited to get all whitespaces.
Now Trivias struct store comments and whitespaces Vec. After that, i
will implement the no-irregular-whitespace rule.

P.S.: There isn't a way to implement this feature without lose a little
bit of performance, comparing with my last PR #1819 to minimax this
trouble instead of store the irregular whitespace as Span it was stored
as u32, i removed a map iterator and removed too a unused function. If
you have a suggestion about it pls give me a feedback.
2023-12-31 12:05:38 +08:00
..
examples feat(prettier): add --no-semi to prettier example (#1588) 2023-11-29 23:33:35 +08:00
src feat(linter): no-irregular-whitespace rule (#1835) 2023-12-31 12:05:38 +08:00
Cargo.toml feat(prettier): add --no-semi to prettier example (#1588) 2023-11-29 23:33:35 +08:00
README.md feat(prettier): init project and infrastructure (#1260) 2023-11-13 14:34:20 +08:00

Note

This is going to be a community project because I don't have the time and energy to work on this alone.

Prettier

Background: 22.5K USD bounty for prettier written in Rust?!

See https://console.algora.io/challenges/prettier

Warning

Contribution Agreement

You hereby agree that you contribute for fun and for the purpose of learning, not for the goal of winning the challenge.

In the unlikely event of winning the challenge, @boshen will ultimately decide on how to spend the money.

Important

Please talk to me on discord and indicate that you are willing to contribute and agree to the contribution agreement.

Getting started

Create a test.js and run the example just example prettier from crates/oxc_prettier/examples/prettier.rs, follow the code structure and read the references documented at the top of the files.

Tasks