import { defineConfig } from "oxlint"; export const typescript = defineConfig({ overrides: [{ files: ["**/*.{ts,tsx,cjs,mjs}"], rules: { "typescript/await-thenable": "warn", "typescript/no-array-delete": "warn", "typescript/no-base-to-string": "warn", "typescript/no-confusing-void-expression": "warn", "typescript/no-duplicate-type-constituents": "warn", "typescript/no-floating-promises": "warn", "typescript/no-for-in-array": "warn", "typescript/no-implied-eval": "warn", "typescript/no-meaningless-void-operator": "warn", "typescript/no-misused-promises": "warn", "typescript/no-misused-spread": "warn", "typescript/no-mixed-enums": "warn", "typescript/no-redundant-type-constituents": "warn", "typescript/no-unnecessary-boolean-literal-compare": "warn", "typescript/no-unnecessary-template-expression": "warn", "typescript/no-unnecessary-type-arguments": "warn", "typescript/no-unnecessary-type-assertion": "warn", "typescript/no-unsafe-argument": "warn", "typescript/no-unsafe-assignment": "warn", "typescript/no-unsafe-call": "warn", "typescript/no-unsafe-enum-comparison": "warn", "typescript/no-unsafe-member-access": "warn", "typescript/no-unsafe-return": "warn", "typescript/no-unsafe-type-assertion": "warn", "typescript/no-unsafe-unary-minus": "warn", "typescript/non-nullable-type-assertion-style": "warn", "typescript/only-throw-warn": "warn", "typescript/prefer-promise-reject-warns": "warn", "typescript/prefer-reduce-type-parameter": "warn", "typescript/prefer-return-this-type": "warn", "typescript/promise-function-async": "warn", "typescript/related-getter-setter-pairs": "warn", "typescript/require-array-sort-compare": "warn", "typescript/require-await": "warn", "typescript/restrict-plus-operands": "warn", "typescript/restrict-template-expressions": "warn", "typescript/return-await": "warn", "typescript/switch-exhaustiveness-check": "warn", "typescript/unbound-method": "warn", "typescript/use-unknown-in-catch-callback-variable": "warn" } }], plugins: ["typescript"] });