@fisch0920/config
v2.5.0
Published
Shared TypeScript, Oxlint, and Oxfmt configs for my projects.
Readme
@fisch0920/config
Shared TypeScript, Oxlint, and Oxfmt configs for my projects.
Usage
1. Add Dependency
Install @fisch0920/config and the peer tools you use as dev dependencies (oxfmt, oxlint, typescript).
2. Configure Oxfmt for code formatting
Create an oxfmt.config.ts file in the root of the project:
export { default } from '@fisch0920/config/oxfmt'3. Configure Oxlint for code linting
Create an oxlint.config.ts file in the root of the project:
export { default } from '@fisch0920/config/oxlint'4. Configure TypeScript
Create a tsconfig.json file in the root that extends @fisch0920/config/tsconfig-node or @fisch0920/config/tsconfig-react. You will still need to specify includes and any compilerOptions you may want to add or override.
{
"extends": "@fisch0920/config/tsconfig-node",
"include": ["*.config.ts", "src"],
"exclude": ["node_modules"]
}5. Add TypeScript Reset
This is just a convenient export of @total-typescript/ts-reset.
// reset.d.ts
import '@fisch0920/config/ts-reset'License
MIT © Travis Fischer
