oxc/crates
Boshen 65be4acdd4
feat(prettier): init project and infrastructure (#1260)
> [!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](https://discord.com/invite/9uXCAwqQZW)
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

- [x] Have the basic infrastructure ready for contribution
- [ ] Implement a test runner in Rust which extracts the snapshots and
do a comparison over it
- [ ] Establish a way to pass all the tests by manually porting code
- [ ] Pass as many tests as possible in
https://github.com/prettier/prettier/tree/main/tests/format/js
2023-11-13 14:34:20 +08:00
..
oxc s/web-infra-dev/oxc-project 2023-11-10 14:30:18 +08:00
oxc_allocator Release Oxc v0.3.0 2023-11-06 19:11:16 +08:00
oxc_ast fix(parser): Disallow ReservedWord in NamedExports (#1230) 2023-11-12 10:52:02 +00:00
oxc_cli feat(cli): run oxlint with no file arguments (#1201) 2023-11-09 11:22:13 +08:00
oxc_codegen Release Oxc v0.3.0 2023-11-06 19:11:16 +08:00
oxc_diagnostics Release Oxc v0.3.0 2023-11-06 19:11:16 +08:00
oxc_formatter Release Oxc v0.3.0 2023-11-06 19:11:16 +08:00
oxc_index Release Oxc v0.3.0 2023-11-06 19:11:16 +08:00
oxc_linter refactor(linter): remove all old parse_expect_jest_fn_call (#1259) 2023-11-13 14:33:41 +08:00
oxc_linter_plugin chore(deps): bump the dependencies group with 4 updates (#1100) 2023-10-30 15:09:28 +08:00
oxc_macros refactor(clippy): allow clippy::too_many_lines 2023-10-16 15:18:11 +08:00
oxc_minifier Release Oxc v0.3.0 2023-11-06 19:11:16 +08:00
oxc_parser fix(parser): Disallow ReservedWord in NamedExports (#1230) 2023-11-12 10:52:02 +00:00
oxc_prettier feat(prettier): init project and infrastructure (#1260) 2023-11-13 14:34:20 +08:00
oxc_query fix(linter): revert changes to JSX attribute strings (#1101) 2023-10-30 15:26:04 +08:00
oxc_resolver Release oxc_resolver v0.5.3 2023-11-11 23:26:07 +08:00
oxc_semantic Release Oxc v0.3.0 2023-11-06 19:11:16 +08:00
oxc_span Release Oxc v0.3.0 2023-11-06 19:11:16 +08:00
oxc_syntax Release Oxc v0.3.0 2023-11-06 19:11:16 +08:00
oxc_transformer refactor(transformer/react-jsx): use extend instead of for-in with push (#1236) 2023-11-12 19:26:15 +08:00
oxc_type_synthesis ci: turn off doc tests because they are slow to compile and run (#961) 2023-10-07 17:01:23 +08:00
oxc_wasm s/web-infra-dev/oxc-project 2023-11-10 14:30:18 +08:00