Lightning-fast JavaScript Standard Style linting and formatting β‘
Drop-in replacement for ESLint/Prettier thatβs 50~100 times faster. Enforces JavaScript Standard Style using Rust-based oxlint and Biome formatter for TypeScript/React projects.
Replace ESLint/Prettier in your project with one command:
npx JohnDeved/ox-standard
Thatβs it! The setup automatically:
npm run lint
handles both linting and formatting===
), modern ES6+ patternsNeed to override rules? Easy:
// .oxlintrc.json
{
"extends": ["./node_modules/ox-standard/.oxlintrc.json"],
"rules": {
"no-console": "warn"
}
}
// biome.json
{
"extends": ["./node_modules/ox-standard/biome.json"],
"javascript": {
"formatter": {
"lineWidth": 100
}
}
}
The setup script handles everything automatically:
Prefer manual setup?
npm install --save-dev github:JohnDeved/ox-standard
echo '{"extends": ["./node_modules/ox-standard/.oxlintrc.json"]}' > .oxlintrc.json
echo '{"extends": ["./node_modules/ox-standard/biome.json"]}' > biome.json
npm pkg set scripts.lint="oxlint --fix .; biome format --write ."
70+ carefully selected rules across:
eqeqeq
- Strict equality (===
)curly
- Consistent bracesno-var
- Use const
/let
space-infix-ops
- Proper spacingyoda
- Readable comparisonsprefer-template
- Template literalsprefer-destructuring
- Modern patternsprefer-object-spread
- Clean objectsno-duplicate-imports
- Organized importsrules-of-hooks
- Proper hooks usagejsx-curly-brace-presence
- Clean JSXself-closing-comp
- Concise componentsconsistent-type-imports
- Clean importsarray-type
- Consistent syntaxprefer-as-const
- Type assertionsprefer-includes
- Better array methodsprefer-string-starts-ends-with
- Modern stringsthrow-new-error
- Proper errorsFound an issue or want to suggest improvements? Open an issue or submit a pull request.
MIT Β© Johann Berger