@wistia/oxlint-config 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rules/unicorn.mjs +5 -1
package/package.json
CHANGED
package/rules/unicorn.mjs
CHANGED
|
@@ -281,7 +281,11 @@ export const unicornRules = {
|
|
|
281
281
|
|
|
282
282
|
// Disallow returning/yielding `Promise.resolve` / `Promise.reject` in async functions
|
|
283
283
|
// https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-useless-promise-resolve-reject.html
|
|
284
|
-
|
|
284
|
+
// Decision: conflicts with `typescript/require-await`. The rule's fix (drop `Promise.resolve`,
|
|
285
|
+
// return the raw value) leaves an `async` function with no `await`, which `require-await`
|
|
286
|
+
// then flags. Picking `require-await` — async-without-await is a meaningful invariant,
|
|
287
|
+
// while this rule is purely cosmetic.
|
|
288
|
+
'unicorn/no-useless-promise-resolve-reject': 'off',
|
|
285
289
|
|
|
286
290
|
// Disallow useless spread operators
|
|
287
291
|
// https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-useless-spread.html
|