Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ root = true

indent_style = space
indent_size = 2
max_line_length = 120
quote_type = single

end_of_line = lf
charset = utf-8
Expand Down
3 changes: 1 addition & 2 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"printWidth": 120,
"singleQuote": true,
"ignorePatterns": [".changeset/**", "**/lib/**"],
"trailingComma": "es5"
}
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ yarn lint
To fix formatting errors, run the following:

```sh
yarn lint --fix
yarn format
```

Remember to add tests for your change if possible. Run the unit tests by:
Expand All @@ -50,9 +50,9 @@ yarn test

### Linting and tests

[ESLint](https://eslint.org/), [Prettier](https://prettier.io/), [TypeScript](https://www.typescriptlang.org/)
[ESLint](https://eslint.org/), [oxfmt](https://oxc.rs/docs/guide/usage/formatter.html), [TypeScript](https://www.typescriptlang.org/)

We use [TypeScript](https://www.typescriptlang.org/) for type checking, [ESLint](https://eslint.org/) with [Prettier](https://prettier.io/) for linting and formatting the code, and [Jest](https://jestjs.io/) for testing.
We use [TypeScript](https://www.typescriptlang.org/) for type checking, [ESLint](https://eslint.org/) for linting, [oxfmt](https://oxc.rs/docs/guide/usage/formatter.html) for formatting, and [Jest](https://jestjs.io/) for testing.

Our pre-commit hooks verify that the linter and tests pass when committing.

Expand Down
4 changes: 2 additions & 2 deletions docs/agents/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

Prefer small modules. Each package exports through its `src/index.ts` — add new public symbols there explicitly.

## Prettier config
## Formatter config

Single quotes, trailing commas (ES5), `printWidth: 120`. Run `yarn lint` to enforce.
Oxfmt is the formatter. Keep shared whitespace, quote, and line-length settings in `.editorconfig` when possible; use `.oxfmtrc.json` only for options EditorConfig cannot express. Run `yarn lint` to enforce code formatting.
1 change: 0 additions & 1 deletion test-apps/native/.oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"arrowParens": "avoid",
"bracketSameLine": true,
"singleQuote": true,
"trailingComma": "all"
}
Loading