Enable unicorn/no-useless-boolean-cast rule (#19373)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
3d2e9ed9ec
commit
81e5eac947
2 files changed
+2
-3
No files matched your search
@@ -325,7 +325,6 @@ const configs = [
|
||||
"unicorn/no-declarations-before-early-exit": "off",
|
||||
"unicorn/prefer-early-return": "off",
|
||||
"unicorn/no-undeclared-class-members": "off",
|
||||
"unicorn/no-useless-boolean-cast": "off",
|
||||
"unicorn/no-useless-fallback-in-spread": "off",
|
||||
"unicorn/no-unnecessary-splice": "off",
|
||||
"unicorn/no-useless-template-literals": "off",
|
||||
|
||||
@@ -14,8 +14,8 @@ import * as assert from "#universal/assert";
|
||||
*/
|
||||
export function gfmFromMarkdown() {
|
||||
const mdastExtensions = originalGfmFromMarkdown();
|
||||
const autolinkExtension = mdastExtensions.find((extension) =>
|
||||
Boolean(extension.enter.literalAutolink),
|
||||
const autolinkExtension = mdastExtensions.find(
|
||||
(extension) => extension.enter.literalAutolink,
|
||||
);
|
||||
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
|
||||
Reference in new issue
Block a user