|
| 1 | +{ |
| 2 | + "$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json", |
| 3 | + "plugins": ["import", "typescript"], |
| 4 | + "categories": {}, |
| 5 | + "rules": { |
| 6 | + "eqeqeq": "error", |
| 7 | + "no-console": "error", |
| 8 | + "no-param-reassign": "error", |
| 9 | + "no-negated-condition": "error", |
| 10 | + "no-template-curly-in-string": "error", |
| 11 | + "curly": "error", |
| 12 | + "radix": ["error", "as-needed"], |
| 13 | + "sort-imports": [ |
| 14 | + "error", |
| 15 | + { |
| 16 | + "ignoreCase": false, |
| 17 | + "ignoreDeclarationSort": true, |
| 18 | + "ignoreMemberSort": false, |
| 19 | + "memberSyntaxSortOrder": ["none", "all", "multiple", "single"] |
| 20 | + } |
| 21 | + ], |
| 22 | + "import/no-cycle": "error", |
| 23 | + "import/default": "error", |
| 24 | + "import/named": "error", |
| 25 | + "import/namespace": "error", |
| 26 | + "typescript/consistent-type-imports": [ |
| 27 | + "error", |
| 28 | + { |
| 29 | + "disallowTypeAnnotations": false |
| 30 | + } |
| 31 | + ], |
| 32 | + "no-unused-vars": "off" |
| 33 | + }, |
| 34 | + "overrides": [ |
| 35 | + { |
| 36 | + "files": ["**/*.spec.ts", "test/**"], |
| 37 | + "rules": { |
| 38 | + "no-template-curly-in-string": "off" |
| 39 | + } |
| 40 | + }, |
| 41 | + { |
| 42 | + "files": [ |
| 43 | + "*.config.cjs", |
| 44 | + "*.config.cts", |
| 45 | + "*.config.js", |
| 46 | + "*.config.mjs", |
| 47 | + "*.config.mts", |
| 48 | + "*.config.ts", |
| 49 | + "tools/**/*.cjs", |
| 50 | + "tools/**/*.cts", |
| 51 | + "tools/**/*.js", |
| 52 | + "tools/**/*.mjs", |
| 53 | + "tools/**/*.mts", |
| 54 | + "tools/**/*.ts" |
| 55 | + ], |
| 56 | + "rules": { |
| 57 | + "no-console": "off" |
| 58 | + } |
| 59 | + } |
| 60 | + ], |
| 61 | + "ignorePatterns": [ |
| 62 | + "**/node_modules", |
| 63 | + "**/.pnpm-store", |
| 64 | + "**/dist", |
| 65 | + "**/coverage", |
| 66 | + "**/__fixtures__/**/*", |
| 67 | + "**/__mocks__/**/*", |
| 68 | + "**/*.d.ts", |
| 69 | + "config.js", |
| 70 | + "**/.clinic/", |
| 71 | + "**/.cache/", |
| 72 | + "**/*.generated.ts", |
| 73 | + "tools/dist", |
| 74 | + "patches", |
| 75 | + "**/tmp/", |
| 76 | + "**/.venv/", |
| 77 | + "tools/mkdocs/docs", |
| 78 | + "tools/mkdocs/site", |
| 79 | + ".github/workflows/**/*.js", |
| 80 | + ".worktrees/**/*", |
| 81 | + ".markdownlint-cli2.mjs" |
| 82 | + ] |
| 83 | +} |
0 commit comments