Skip to content
Draft
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
6 changes: 6 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"printWidth": 80,
"sortImports": false,
"sortPackageJson": false
}
3 changes: 2 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ npm test # Run all tests (Vitest)
npm run test:coverage # Tests with coverage
npm run lint # ESLint
npm run lint:fix # ESLint with auto-fix
npm run format # Prettier
npm run format # Prettier (default formatter during Oxfmt migration)
npm run format:oxfmt # Oxfmt (opt-in incremental migration formatter)
npm run build-prod # Production build
```

Expand Down
7 changes: 6 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,17 @@ git checkout -b fix/issue-number-bug-name

### Coding Standards

We enforce code quality using ESLint and Prettier.
We enforce code quality using ESLint and Prettier. Oxfmt is available during
the incremental formatter migration, but it is not the default formatter yet.

- **Format Code**:
```bash
npm run format
```
- **Format Code with Oxfmt**:
```bash
npm run format:oxfmt
```
- **Lint Code**:
```bash
npm run lint
Expand Down
4 changes: 2 additions & 2 deletions map-generator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ the [Official Openfront Wiki](https://openfront.wiki/Map_Making)

6. Find the output folder at `../resources/maps/<map_name>`
7. Go back to the root directory: `cd ..`
8. Run Prettier: `npm run format`
8. Run the default formatter: `npm run format`
This rewrites ALL files in place. Git figures out which files are actually changed, don't worry.
Alternatively, you can either run Prettier per file: `npx prettier --write resources/maps/<map_name>/<file_name>` or in VSCode install the Prettier extension and per file do Show and run Commands > Format Document.
Alternatively, while the formatter migration is in progress, you can run Prettier per file: `npx prettier --write resources/maps/<map_name>/<file_name>` or in VSCode install the Prettier extension and per file do Show and run Commands > Format Document.

## Output Files

Expand Down
Loading
Loading