|
1 | 1 | { |
2 | 2 | "$schema": "./node_modules/oxlint/configuration_schema.json", |
3 | | - "plugins": ["import", "jsx-a11y", "nextjs", "react", "typescript", "unicorn"], |
| 3 | + "plugins": ["import", "jsx-a11y", "nextjs", "promise", "react", "typescript", "unicorn"], |
4 | 4 | "ignorePatterns": [ |
5 | 5 | "**/.next", |
6 | 6 | "**/.swc", |
|
96 | 96 | "nextjs/no-title-in-document-head": "error", |
97 | 97 | "nextjs/no-typos": "error", |
98 | 98 | "nextjs/no-unwanted-polyfillio": "error", |
| 99 | + "promise/always-return": "error", |
| 100 | + "promise/no-callback-in-promise": "error", |
99 | 101 | "react-hooks/rules-of-hooks": "error", |
100 | 102 | "react/jsx-boolean-value": ["error"], |
101 | 103 | "react/jsx-curly-brace-presence": ["error"], |
|
115 | 117 | "react/no-redundant-should-component-update": "error", |
116 | 118 | "react/no-this-in-sfc": "error", |
117 | 119 | "react/no-unknown-property": "error", |
| 120 | + "react/no-unescaped-entities": "error", |
118 | 121 | "react/no-will-update-set-state": "error", |
119 | 122 | "react/self-closing-comp": "error", |
120 | 123 | "typescript/await-thenable": "error", |
|
146 | 149 | "typescript/no-unnecessary-boolean-literal-compare": "error", |
147 | 150 | "typescript/no-unnecessary-type-arguments": "error", |
148 | 151 | "typescript/no-unnecessary-type-assertion": "error", |
| 152 | + "typescript/no-unnecessary-type-constraint": "error", |
149 | 153 | "typescript/no-unsafe-enum-comparison": "error", |
150 | 154 | "typescript/prefer-includes": "error", |
| 155 | + "typescript/prefer-nullish-coalescing": "error", |
151 | 156 | "typescript/prefer-readonly": "error", |
152 | 157 | "typescript/return-await": ["error", "error-handling-correctness-only"], |
153 | 158 | "typescript/unbound-method": "off", |
| 159 | + "unicorn/consistent-date-clone": "error", |
| 160 | + "unicorn/consistent-empty-array-spread": "error", |
| 161 | + "unicorn/consistent-existence-index-check": "error", |
| 162 | + "unicorn/error-message": "error", |
| 163 | + "unicorn/no-anonymous-default-export": "error", |
| 164 | + "unicorn/no-immediate-mutation": "error", |
| 165 | + "unicorn/no-length-as-slice-end": "error", |
| 166 | + "unicorn/no-object-as-default-parameter": "error", |
| 167 | + "unicorn/no-unnecessary-array-splice-count": "error", |
| 168 | + "unicorn/no-useless-collection-argument": "error", |
| 169 | + "unicorn/numeric-separators-style": "error", |
154 | 170 | "unicorn/prefer-array-find": "error", |
155 | 171 | "unicorn/prefer-array-flat": "error", |
156 | 172 | "unicorn/prefer-array-flat-map": "error", |
157 | 173 | "unicorn/prefer-array-some": "error", |
158 | | - "unicorn/prefer-node-protocol": "error" |
| 174 | + "unicorn/prefer-date-now": "error", |
| 175 | + "unicorn/prefer-includes": "error", |
| 176 | + "unicorn/prefer-keyboard-event-key": "error", |
| 177 | + "unicorn/prefer-math-min-max": "error", |
| 178 | + "unicorn/prefer-native-coercion-functions": "error", |
| 179 | + "unicorn/prefer-node-protocol": "error", |
| 180 | + "unicorn/prefer-number-properties": "error", |
| 181 | + "unicorn/prefer-regexp-test": "error", |
| 182 | + "unicorn/prefer-string-slice": "error", |
| 183 | + "unicorn/require-number-to-fixed-digits-argument": "error" |
159 | 184 | } |
160 | 185 | } |
0 commit comments