@bensandee/config
v0.10.0
Published
Shared configs: tsconfig bases, oxlint preset + custom rules, Renovate preset
Readme
@bensandee/config
Shared tsconfig bases and oxlint configuration for TypeScript projects.
Installation
pnpm add -D @bensandee/configOxlint configuration
Provides a recommended oxlint config that combines 12 custom plugin rules from @bensandee/eslint-plugin with a curated preset of oxlint built-in rules across 10 plugins (eslint, typescript, react, react-perf, jsx-a11y, unicorn, promise, vitest, node, import) with correctness, suspicious, and perf categories enabled.
// oxlint.config.ts
import recommended from "@bensandee/config/oxlint/recommended";
import { defineConfig } from "oxlint";
export default defineConfig({ extends: [recommended] });The base preset without custom rules is also available:
import preset from "@bensandee/config/oxlint";TSConfig bases
The default, library, and react bases use bundler module resolution. The node base uses nodenext module resolution with allowImportingTsExtensions, targeting Node's native TypeScript support. The node base tracks the current Node.js LTS release; expect its target and lib settings to advance as new LTS versions ship. The react base assumes React 19+.
| Base | Import path | Target | Lib | Key options |
| ------- | ------------------------------------ | ------ | ------------------------- | ------------------------------------------------------------------------ |
| default | @bensandee/config/tsconfig/default | ES2024 | ES2024 | General purpose |
| node | @bensandee/config/tsconfig/node | ES2024 | ES2024 | nodenext, allowImportingTsExtensions, erasableSyntaxOnly, noEmit |
| library | @bensandee/config/tsconfig/library | ES2022 | ES2022 | Lower target for broader compatibility |
| react | @bensandee/config/tsconfig/react | ES2024 | ES2024, DOM, DOM.Iterable | React 19+, jsx: react-jsx |
{
"extends": "@bensandee/config/tsconfig/node"
}Exports
| Entry point | Description |
| -------------------------------------- | ----------------------------------------------- |
| @bensandee/config/oxlint | Oxlint preset rules and plugin config |
| @bensandee/config/oxlint/recommended | Full recommended config (preset + custom rules) |
| @bensandee/config/tsconfig/default | General-purpose tsconfig base |
| @bensandee/config/tsconfig/node | Node.js tsconfig base |
| @bensandee/config/tsconfig/library | Library tsconfig base (lower target) |
| @bensandee/config/tsconfig/react | React tsconfig base (JSX + DOM) |
