Shared default configuration package for:
oxfmt(.oxfmtrc.json)oxlint(.oxlintrc.json)
In any project where you want to reuse these defaults:
npm install -D @zeemyself/oxconfig oxfmt oxlintCreate/update your project's .oxlintrc.json:
{
"extends": ["@zeemyself/oxconfig/oxlint"]
}Add local overrides if needed:
{
"extends": ["@zeemyself/oxconfig/oxlint"],
"rules": {
"no-alert": "warn"
}
}Create/update your project's .oxfmtrc.json:
{
"extends": ["@zeemyself/oxconfig/oxfmt"]
}If your oxfmt version does not support extends, copy the package config as your local .oxfmtrc.json:
cp ./node_modules/@zeemyself/oxconfig/.oxfmtrc.json ./.oxfmtrc.jsonsemi: falsesingleQuote: truetabWidth: 2trailingComma: "all"printWidth: 80
- Plugins:
react,typescript,unicorn,import - Categories:
correctness: warnperf: warn
- Rules:
no-console: offno-debugger: warn
- Environment:
browser: true
- Ignored paths:
distnode_modules