Skip to content

kayahr/oxlint-config

Repository files navigation

@kayahr/oxlint-config

GitHub | NPM

Shared oxlint configuration for my personal TypeScript projects.

Usage

Install the dependencies:

$ npm install -DE @kayahr/oxlint-config

Create an .oxlintrc.json configuration file with the following content (modify environment if necessary):

{
    "$schema": "node_modules/oxlint/configuration_schema.json",
    "extends": [
        "node_modules/@kayahr/oxlint-config/.oxlintrc.json"
    ],
    "env": {
        "node": true,
        "browser": true
    }
}

Add the following script line to package.json:

{
    "scripts": {
        "test:lint": "oxlint --type-aware --deny-warnings",
        "test": "npm run test:lint"
    }
}

When using the OXC VSCode extension extension then enable typeAware flag in .vscode/settings.json:

{
    "oxc.typeAware": true
}

About

Shared oxlint configuration for my personal TypeScript projects.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •