@zeemyself/oxconfig
v1.0.1
Published
Shared oxfmt and oxlint defaults
Readme
@zeemyself/oxconfig
Shared default configuration package for:
oxfmt(.oxfmtrc.json)oxlint(.oxlintrc.json)
Install
In any project where you want to reuse these defaults:
npm install -D @zeemyself/oxconfig oxfmt oxlintUse with extends
oxlint
Create/update your project's .oxlintrc.json:
{
"extends": ["@zeemyself/oxconfig/oxlint"]
}Add local overrides if needed:
{
"extends": ["@zeemyself/oxconfig/oxlint"],
"rules": {
"no-alert": "warn"
}
}oxfmt
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.jsonIncluded defaults
.oxfmtrc.json
semi: falsesingleQuote: truetabWidth: 2trailingComma: "all"printWidth: 80
.oxlintrc.json
- Plugins:
react,typescript,unicorn,import - Categories:
correctness: warnperf: warn
- Rules:
no-console: offno-debugger: warn
- Environment:
browser: true
- Ignored paths:
distnode_modules
