Skip to content

Commit

Permalink
Merge branch 'next' into infra/unicorn/no-array-for-each
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Oct 10, 2023
2 parents 5cdd3ee + 6cb5aa2 commit 32b8329
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ module.exports = defineConfig({
'unicorn/consistent-destructuring': 'off',
'unicorn/consistent-function-scoping': 'off',
'unicorn/escape-case': 'off',
'unicorn/explicit-length-check': 'off',
'unicorn/filename-case': 'off',
'unicorn/import-style': 'off',
'unicorn/no-array-callback-reference': 'off',
Expand Down
4 changes: 2 additions & 2 deletions scripts/apidoc/signature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export async function analyzeSignature(
// Generate usage section

let signatureTypeParametersString = '';
if (signatureTypeParameters.length !== 0) {
if (signatureTypeParameters.length > 0) {
signatureTypeParametersString = `<${signatureTypeParameters.join(', ')}>`;
}

Expand Down Expand Up @@ -207,7 +207,7 @@ async function typeToText(type_?: Type, short = false): Promise<string> {
.join(' | ');

case 'reference':
if (!type.typeArguments || !type.typeArguments.length) {
if (!type.typeArguments || type.typeArguments.length === 0) {
const reflection = type.reflection as DeclarationReflection | undefined;
const reflectionType = reflection?.type;
if (
Expand Down
2 changes: 1 addition & 1 deletion test/all_functional.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function modulesList(): { [module: string]: string[] } {
.reduce((result, mod) => {
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
const methods = Object.keys(fakerEN[mod]).filter(isMethodOf(mod));
if (methods.length) {
if (methods.length > 0) {
result[mod] = methods;
} else {
console.log(`Skipping ${mod} - No testable methods`);
Expand Down
2 changes: 1 addition & 1 deletion test/vitest-extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ expect.extend({
const uniqueDuplication = [...new Set(duplications)];

return {
pass: uniqueDuplication.length !== 0,
pass: uniqueDuplication.length > 0,
message: () =>
isNot
? `Duplicated values are [${uniqueDuplication.join(', ')}]`
Expand Down

0 comments on commit 32b8329

Please sign in to comment.