@dragunovartem99/oxfmt-config
v2.1.0
Published
Personal oxfmt Config
Downloads
691
Maintainers
Readme
Personal Oxfmt Config
This configuration uses explicit style, to maintain readability and minimize mistakes, for example:
- Semicolons
- Arrow function parentheses
- Reasonable print width (100 chars)
- Double quotes (some kind of C "vibe")
And it uses tabs (or 4 spaces in formats like YAML)
Installation
npm install --save-dev @dragunovartem99/oxfmt-configUsage
- Create
oxfmt.config.tsin your project root:
export { default } from "@dragunovartem99/oxfmt-config";- Add scripts to your project's
package.json:
{
"scripts": {
"format": "oxfmt --write",
"format:check": "oxfmt --check"
}
}- Run the formatter:
npm run formatOr check formatting without modifications:
npm run format:checkCreating your own configuration
For creating similar configurations, see:
