|
| 1 | +{ |
| 2 | + "$schema": "https://raw.githubusercontent.com/oxc-project/oxc/refs/heads/main/npm/oxlint/configuration_schema.json", |
| 3 | + "categories": { |
| 4 | + "correctness": "warn" // TODO: gradually fix bugs and turn this to error |
| 5 | + }, |
| 6 | + "rules": { |
| 7 | + "const-comparisons": "off", // TODO: there's a bug when comparing private identifiers. Re-enable once it's fixed. |
| 8 | + "no-cond-assign": "error", |
| 9 | + "no-const-assign": "error", |
| 10 | + "no-debugger": "error", |
| 11 | + "no-dupe-class-members": "error", |
| 12 | + "no-dupe-keys": "error", |
| 13 | + "no-empty-pattern": "error", |
| 14 | + "import/no-duplicates": "error", |
| 15 | + |
| 16 | + "no-useless-escape": "off" // there's a lot of these. Should be fixed eventually. |
| 17 | + }, |
| 18 | + "ignorePatterns": [ |
| 19 | + "vendor", |
| 20 | + "build", |
| 21 | + "test/snapshots/**", |
| 22 | + "bench/react-hello-world/*.js", |
| 23 | + |
| 24 | + "test/js/node/**/parallel/**", |
| 25 | + "test/js/node/test/fixtures", // full of JS with intentional syntax errors |
| 26 | + "test/snippets/**", |
| 27 | + "test/regression/issue/14477/*.tsx", |
| 28 | + "test/js/**/*bad.js", |
| 29 | + "test/bundler/transpiler/decorators.test.ts", // uses `arguments` as decorator |
| 30 | + "test/bundler/native-plugin.test.ts", // parser doesn't handle import metadata |
| 31 | + "test/bundler/transpiler/with-statement-works.js" // parser doesn't allow `with` statement |
| 32 | + ], |
| 33 | + "overrides": [ |
| 34 | + { |
| 35 | + "files": ["test/**", "examples/**", "packages/bun-internal/test/runners/**"], |
| 36 | + "rules": { |
| 37 | + "no-unused-vars": "off", |
| 38 | + "no-unused-private-class-members": "off", |
| 39 | + "no-unnecessary-await": "off" |
| 40 | + } |
| 41 | + }, |
| 42 | + { |
| 43 | + "files": ["test/**", "bench/**"], |
| 44 | + "rules": { |
| 45 | + "no-shadow-restricted-names": "off", |
| 46 | + "no-empty-file": "off", |
| 47 | + "no-unnecessary-await": "off" |
| 48 | + } |
| 49 | + } |
| 50 | + ] |
| 51 | +} |
0 commit comments