chore: switch oxlint config from .oxlintrc.json to oxlint.config.ts

Same config, just the TS form (defineConfig from 'oxlint'). Verified with
--print-config that it's actually picked up over the JSON default.
This commit is contained in:
Buddy 2026-08-22 11:49:49 -07:00
parent 14e35846d5
commit c339ce1d06
2 changed files with 18 additions and 17 deletions

View File

@ -1,17 +0,0 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "unicorn", "oxc"],
"categories": {
"correctness": "error",
"suspicious": "warn",
"pedantic": "warn"
},
"rules": {
"eslint/max-lines": "off",
"eslint/max-lines-per-function": "off"
},
"env": {
"builtin": true
},
"ignorePatterns": ["dist/"]
}

18
oxlint.config.ts Normal file
View File

@ -0,0 +1,18 @@
import { defineConfig } from 'oxlint';
export default defineConfig({
plugins: ['typescript', 'unicorn', 'oxc'],
categories: {
correctness: 'error',
suspicious: 'warn',
pedantic: 'warn',
},
rules: {
'eslint/max-lines': 'off',
'eslint/max-lines-per-function': 'off',
},
env: {
builtin: true,
},
ignorePatterns: ['dist/'],
});