diff options
| author | ST-DDT <[email protected]> | 2023-10-23 14:33:27 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-23 12:33:27 +0000 |
| commit | b0838364c1da9c742de565184676023abbbd51ae (patch) | |
| tree | bb25a7d252c18f5b2a3ace6bddf7fc661a8c65c7 | |
| parent | c59188099d2fa0da297023c38a1e104627cdbae7 (diff) | |
| download | faker-b0838364c1da9c742de565184676023abbbd51ae.tar.xz faker-b0838364c1da9c742de565184676023abbbd51ae.zip | |
infra(unicorn): prefer-native-coercion-functions (#2445)
| -rw-r--r-- | .eslintrc.js | 1 | ||||
| -rw-r--r-- | scripts/apidoc/typedoc.ts | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index cb47b308..cd918e3b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -64,7 +64,6 @@ module.exports = defineConfig({ 'unicorn/prefer-code-point': 'off', 'unicorn/prefer-export-from': 'off', 'unicorn/prefer-module': 'off', - 'unicorn/prefer-native-coercion-functions': 'off', 'unicorn/prefer-negative-index': 'off', 'unicorn/prefer-string-slice': 'off', 'unicorn/prefer-ternary': 'off', diff --git a/scripts/apidoc/typedoc.ts b/scripts/apidoc/typedoc.ts index 4a39bd33..9fa1fdad 100644 --- a/scripts/apidoc/typedoc.ts +++ b/scripts/apidoc/typedoc.ts @@ -281,12 +281,12 @@ export function extractSeeAlsos(reflection?: CommentHolder): string[] { .map((link) => { link = link.trim(); if (link.startsWith('-')) { - link = link.slice(1).trim(); + link = link.slice(1).trimStart(); } return link; }) - .filter((link) => link) + .filter((link) => link.length > 0) ); } |
