| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- {
- "$schema": "./node_modules/oxlint/configuration_schema.json",
- "ignorePatterns": [
- "node_modules/**"
- ],
- "plugins": [
- "typescript",
- "react",
- "jsx-a11y"
- ],
- "jsPlugins": [
- "./tools/oxlint/input-number-guard.mjs"
- ],
- "categories": {
- "correctness": "error"
- },
- "env": {
- "browser": true,
- "es2022": true
- },
- "rules": {
- "typescript/no-explicit-any": "error",
- "typescript/no-unused-vars": [
- "warn",
- {
- "argsIgnorePattern": "^_",
- "varsIgnorePattern": "^_",
- "caughtErrorsIgnorePattern": "^_"
- }
- ],
- "typescript/ban-ts-comment": "error",
- "typescript/no-empty-object-type": "error",
- "typescript/no-namespace": "error",
- "typescript/no-require-imports": "error",
- "typescript/no-this-alias": "error",
- "typescript/no-unsafe-function-type": "error",
- "typescript/no-unused-expressions": "warn",
- "typescript/no-wrapper-object-types": "error",
- "typescript/prefer-as-const": "error",
- "typescript/triple-slash-reference": "error",
- "no-empty": [
- "error",
- {
- "allowEmptyCatch": true
- }
- ],
- "react-hooks/rules-of-hooks": "error",
- "react-hooks/exhaustive-deps": "error",
- "jsx-a11y/no-autofocus": "off",
- "input-number/no-synthetic-clear": "off",
- "jsx-a11y/prefer-tag-over-role": "off"
- },
- "overrides": [
- {
- "files": [
- "src/pages/settings/**/*.tsx",
- "src/pages/xray/**/*.tsx"
- ],
- "rules": {
- "input-number/no-synthetic-clear": "error"
- }
- },
- {
- "files": [
- "src/pages/xray/**/*Modal.tsx"
- ],
- "rules": {
- "input-number/no-synthetic-clear": "off"
- }
- }
- ]
- }
|