|
| 1 | +{ |
| 2 | + "$schema": "./node_modules/oxlint/configuration_schema.json", |
| 3 | + "plugins": [ |
| 4 | + "typescript" |
| 5 | + ], |
| 6 | + "categories": { |
| 7 | + "correctness": "error" |
| 8 | + }, |
| 9 | + "env": { |
| 10 | + "builtin": true, |
| 11 | + "es2022": true, |
| 12 | + "browser": true, |
| 13 | + "node": true |
| 14 | + }, |
| 15 | + "ignorePatterns": [ |
| 16 | + "**/.chrome/**/*", |
| 17 | + "**/node_modules/**/*", |
| 18 | + "**/dist/**/*", |
| 19 | + "**/lib/**/*", |
| 20 | + "**/out/**/*", |
| 21 | + "**/bin/**/*", |
| 22 | + "**/resources/**/*", |
| 23 | + "**/production/**/*", |
| 24 | + "**/public/**/*", |
| 25 | + "**/.next/**/*", |
| 26 | + "**/*env.d.ts", |
| 27 | + "**/.pnp.cjs" |
| 28 | + ], |
| 29 | + "rules": { |
| 30 | + "eqeqeq": "error", |
| 31 | + // currently in oxlint's nursery (=under development) |
| 32 | + "constructor-super": "error", |
| 33 | + // currently unsupported by oxlint |
| 34 | + "dot-notation": "error", |
| 35 | + "for-direction": "error", |
| 36 | + // currently in oxlint's nursery (=under development) |
| 37 | + "getter-return": "error", |
| 38 | + "guard-for-in": "error", |
| 39 | + // currently unsupported by oxlint |
| 40 | + "new-parens": "error", |
| 41 | + "no-async-promise-executor": "error", |
| 42 | + "no-bitwise": "error", |
| 43 | + "no-caller": "error", |
| 44 | + "no-case-declarations": "error", |
| 45 | + "no-class-assign": "error", |
| 46 | + "no-compare-neg-zero": "error", |
| 47 | + "no-cond-assign": "error", |
| 48 | + "no-const-assign": "error", |
| 49 | + "no-constant-binary-expression": "error", |
| 50 | + "no-constant-condition": "error", |
| 51 | + "no-control-regex": "error", |
| 52 | + "no-debugger": "error", |
| 53 | + "no-delete-var": "error", |
| 54 | + // currently unsupported by oxlint |
| 55 | + "no-dupe-args": "error", |
| 56 | + "no-dupe-class-members": "error", |
| 57 | + "no-dupe-else-if": "error", |
| 58 | + "no-dupe-keys": "error", |
| 59 | + "no-duplicate-case": "error", |
| 60 | + "no-empty": "error", |
| 61 | + "no-empty-character-class": "error", |
| 62 | + "no-empty-pattern": "error", |
| 63 | + "no-empty-static-block": "error", |
| 64 | + "no-eval": "error", |
| 65 | + "no-ex-assign": "error", |
| 66 | + "no-explicit-any": "error", |
| 67 | + "no-extra-boolean-cast": "error", |
| 68 | + "no-fallthrough": "error", |
| 69 | + "no-func-assign": "error", |
| 70 | + "no-global-assign": "error", |
| 71 | + "no-import-assign": "error", |
| 72 | + "no-inner-declarations": "off", |
| 73 | + "no-invalid-regexp": "error", |
| 74 | + "no-irregular-whitespace": "error", |
| 75 | + "no-labels": "error", |
| 76 | + "no-loss-of-precision": "error", |
| 77 | + // currently in oxlint's nursery (=under development) |
| 78 | + "no-misleading-character-class": "error", |
| 79 | + // currently unsupported by oxlint |
| 80 | + "no-multiple-empty-lines": ["error", { |
| 81 | + "max": 1 |
| 82 | + }], |
| 83 | + "no-new-native-nonconstructor": "error", |
| 84 | + "no-new-wrappers": "error", |
| 85 | + "no-nonoctal-decimal-escape": "error", |
| 86 | + "no-obj-calls": "error", |
| 87 | + // currently unsupported by oxlint |
| 88 | + "no-octal": "error", |
| 89 | + "no-prototype-builtins": "error", |
| 90 | + "no-redeclare": "error", |
| 91 | + "no-regex-spaces": "error", |
| 92 | + "no-self-assign": "error", |
| 93 | + "no-setter-return": "error", |
| 94 | + "no-shadow-restricted-names": "error", |
| 95 | + "no-sparse-arrays": "error", |
| 96 | + "no-this-before-super": "error", |
| 97 | + "no-throw-literal": "error", |
| 98 | + // currently unsupported by oxlint |
| 99 | + "no-trailing-spaces": "error", |
| 100 | + // currently in oxlint's nursery (=under development) |
| 101 | + "no-undef": "off", |
| 102 | + "no-unexpected-multiline": "error", |
| 103 | + // currently in oxlint's nursery (=under development) |
| 104 | + "no-unreachable": "error", |
| 105 | + "no-unsafe-finally": "error", |
| 106 | + "no-unsafe-negation": "error", |
| 107 | + "no-unsafe-optional-chaining": "error", |
| 108 | + "no-unused-labels": "error", |
| 109 | + "no-unused-private-class-members": "error", |
| 110 | + "no-unused-vars": [ |
| 111 | + "error", |
| 112 | + { |
| 113 | + "caughtErrorsIgnorePattern": "^_", |
| 114 | + "argsIgnorePattern": "^_", |
| 115 | + "varsIgnorePattern": "^_" |
| 116 | + } |
| 117 | + ], |
| 118 | + "no-useless-backreference": "error", |
| 119 | + "no-useless-catch": "error", |
| 120 | + "no-useless-escape": "error", |
| 121 | + "no-var": "error", |
| 122 | + "no-var-requires": "error", |
| 123 | + "no-with": "error", |
| 124 | + // currently unsupported by oxlint |
| 125 | + "prefer-const": "error", |
| 126 | + "prefer-rest-params": "error", |
| 127 | + "prefer-spread": "error", |
| 128 | + // currently unsupported by oxlint |
| 129 | + "quotes": [2, "single", { |
| 130 | + "avoidEscape": true |
| 131 | + }], |
| 132 | + "require-yield": "error", |
| 133 | + // currently unsupported by oxlint |
| 134 | + "semi": [2, "always"], |
| 135 | + // currently unsupported by oxlint |
| 136 | + "space-before-function-paren": ["error", { |
| 137 | + "anonymous": "never", |
| 138 | + "asyncArrow": "always", |
| 139 | + "named": "never" |
| 140 | + }], |
| 141 | + "use-isnan": "error", |
| 142 | + "valid-typeof": "error", |
| 143 | + "@typescript-eslint/ban-ts-comment": "error", |
| 144 | + "no-array-constructor": "error", |
| 145 | + "@typescript-eslint/adjacent-overload-signatures": "error", |
| 146 | + "@typescript-eslint/array-type": [ |
| 147 | + "error", |
| 148 | + { |
| 149 | + "default": "array-simple" |
| 150 | + } |
| 151 | + ], |
| 152 | + "@typescript-eslint/no-duplicate-enum-values": "error", |
| 153 | + "@typescript-eslint/no-empty-object-type": "error", |
| 154 | + "@typescript-eslint/no-extra-non-null-assertion": "error", |
| 155 | + "@typescript-eslint/no-misused-new": "error", |
| 156 | + "@typescript-eslint/no-namespace": "off", |
| 157 | + "@typescript-eslint/no-non-null-assertion": "off", |
| 158 | + "@typescript-eslint/no-non-null-asserted-optional-chain": "error", |
| 159 | + "@typescript-eslint/prefer-for-of": "error", |
| 160 | + "@typescript-eslint/no-require-imports": "error", |
| 161 | + "@typescript-eslint/no-this-alias": "error", |
| 162 | + "@typescript-eslint/no-unnecessary-type-constraint": "error", |
| 163 | + "@typescript-eslint/no-unsafe-declaration-merging": "error", |
| 164 | + "@typescript-eslint/no-unsafe-function-type": "error", |
| 165 | + "@typescript-eslint/no-unused-expressions": "error", |
| 166 | + "@typescript-eslint/no-unnecessary-condition": "error", |
| 167 | + "@typescript-eslint/no-wrapper-object-types": "error", |
| 168 | + "@typescript-eslint/parameter-properties": "error", |
| 169 | + "@typescript-eslint/prefer-as-const": "error", |
| 170 | + "@typescript-eslint/prefer-namespace-keyword": "error", |
| 171 | + "@typescript-eslint/strict-boolean-expressions": "error", |
| 172 | + "@typescript-eslint/triple-slash-reference": "error", |
| 173 | + // jsPlugins: currently unstable |
| 174 | + // "header/header": [2, "block", { |
| 175 | + // "pattern": "MIT License|DO NOT EDIT MANUALLY!" |
| 176 | + // }], |
| 177 | + // "@stylistic/indent": "error", |
| 178 | + // "@stylistic/type-annotation-spacing": "error" |
| 179 | + }, |
| 180 | + "files": [ |
| 181 | + "**/src/**/*.ts", |
| 182 | + "**/src/**/*.tsx", |
| 183 | + "**/test/**/*.ts", |
| 184 | + "**/test/**/*.tsx" |
| 185 | + ], |
| 186 | + // jsPlugins: currently unstable |
| 187 | + // "jsPlugins": [ |
| 188 | + // "eslint-plugin-header", |
| 189 | + // "@stylistic/eslint-plugin" |
| 190 | + // ] |
| 191 | +} |
0 commit comments