Shared oxlint configuration for my personal TypeScript projects.
Install the dependencies:
$ npm install -DE @kayahr/oxlint-configCreate 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
}