@onlywatch/oxlintrc
v0.1.0
Published
Battery-included oxlint configuration presets with recommended rules from popular ESLint plugins
Maintainers
Readme
📦 @onlywatch/oxlintrc
[!NOTE]
🔋 aims to integrate the rules of eslint
pluginssupported by oxc-plugins (especially therecommendedrules) for easy sharing of configurations across different projects
✨ Motivation
seems...
there doesn't seem to be a good way to load multiple plugins in .oxlintrc.json and enable all recommended rule sets at once
so...
this package organizes multiple commonly used plugins and their recommended rule sets, providing developers the ability to enable them all at once through extends
🛠️ Basic Usage
install the package
pnpm i oxlintrc @onlywatch/oxlintrc -D
touch a file named
.oxlintrc.json, extend the presets to include therecommendedrules you wish to enable, for example:{ "$schema": "./node_modules/oxlint/configuration_schema.json", "extends": [ + "./node_modules/@onlywatch/oxlintrc/src/recommended/nextjs.json", + "./node_modules/@onlywatch/oxlintrc/src/recommended/vitest.json", + "./node_modules/@onlywatch/oxlintrc/src/recommended/unicorn.json", + "./node_modules/@onlywatch/oxlintrc/src/recommended/import.json", + "./node_modules/@onlywatch/oxlintrc/src/recommended/node.json", + "./node_modules/@onlywatch/oxlintrc/src/recommended/react.json", + "./node_modules/@onlywatch/oxlintrc/src/recommended/react-hooks.json", + "./node_modules/@onlywatch/oxlintrc/src/recommended/react-perf.json", + "./node_modules/@onlywatch/oxlintrc/src/recommended/promise.json", ], }
📄 My Opinion Presets
[!CAUTION]
this is my personal opinion rules
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"extends": [
+ "./node_modules/@onlywatch/oxlintrc/src/opinion/own.json",
],
}