|
| 1 | +{ |
| 2 | + "$schema": "./node_modules/oxlint/configuration_schema.json", |
| 3 | + "plugins": [], |
| 4 | + "categories": { |
| 5 | + "correctness": "off" |
| 6 | + }, |
| 7 | + "env": { |
| 8 | + "builtin": true |
| 9 | + }, |
| 10 | + "ignorePatterns": [ |
| 11 | + "out/**", |
| 12 | + "build/**", |
| 13 | + "dist/**", |
| 14 | + ".output/**", |
| 15 | + "**/node_modules/**" |
| 16 | + ], |
| 17 | + "overrides": [ |
| 18 | + { |
| 19 | + "files": ["**/*.{js,jsx,mjs,ts,tsx,mts,cts}"], |
| 20 | + "rules": { |
| 21 | + "react/display-name": "error", |
| 22 | + "react/jsx-key": "error", |
| 23 | + "react/jsx-no-comment-textnodes": "error", |
| 24 | + "react/jsx-no-duplicate-props": "error", |
| 25 | + "react/jsx-no-target-blank": "off", |
| 26 | + "react/jsx-no-undef": "error", |
| 27 | + "react/no-children-prop": "error", |
| 28 | + "react/no-danger-with-children": "error", |
| 29 | + "react/no-direct-mutation-state": "error", |
| 30 | + "react/no-find-dom-node": "error", |
| 31 | + "react/no-is-mounted": "error", |
| 32 | + "react/no-render-return-value": "error", |
| 33 | + "react/no-string-refs": "error", |
| 34 | + "react/no-unescaped-entities": "error", |
| 35 | + "react/no-unknown-property": "off", |
| 36 | + "react/no-unsafe": "off", |
| 37 | + "react/react-in-jsx-scope": "off", |
| 38 | + "react/require-render-return": "error", |
| 39 | + "react-hooks/rules-of-hooks": "error", |
| 40 | + "react-hooks/exhaustive-deps": "warn", |
| 41 | + "import/no-anonymous-default-export": "warn", |
| 42 | + "jsx-a11y/alt-text": [ |
| 43 | + "warn", |
| 44 | + { |
| 45 | + "elements": ["img"], |
| 46 | + "img": ["Image"] |
| 47 | + } |
| 48 | + ], |
| 49 | + "jsx-a11y/aria-props": "warn", |
| 50 | + "jsx-a11y/aria-proptypes": "warn", |
| 51 | + "jsx-a11y/aria-unsupported-elements": "warn", |
| 52 | + "jsx-a11y/role-has-required-aria-props": "warn", |
| 53 | + "jsx-a11y/role-supports-aria-props": "warn" |
| 54 | + }, |
| 55 | + "globals": { |
| 56 | + "AudioWorkletGlobalScope": "readonly", |
| 57 | + "AudioWorkletProcessor": "readonly", |
| 58 | + "currentFrame": "readonly", |
| 59 | + "currentTime": "readonly", |
| 60 | + "registerProcessor": "readonly", |
| 61 | + "sampleRate": "readonly", |
| 62 | + "WorkletGlobalScope": "readonly" |
| 63 | + }, |
| 64 | + "plugins": ["react", "react-perf", "import", "jsx-a11y"], |
| 65 | + "env": { |
| 66 | + "browser": true, |
| 67 | + "node": true |
| 68 | + } |
| 69 | + } |
| 70 | + ] |
| 71 | +} |
0 commit comments