Skip to content

Commit 47d688a

Browse files
committed
lint: ignore comments in max-lines
1 parent a9070d9 commit 47d688a

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = {
2424
excludedFiles: ['./**/__tests__/**/*.*'],
2525
rules: {
2626
'max-depth': [1, { max: 3 }],
27-
'max-lines-per-function': [1, { max: 45 }],
27+
'max-lines-per-function': [1, { max: 45, skipComments: true }],
2828
'max-nested-callbacks': [1, { max: 2 }],
2929
'max-statements': [1, { max: 10 }],
3030
},

packages/n4s/src/runtime/enforceEager.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { transformResult } from 'transformResult';
88

99
type IRules = n4s.IRules<Record<string, any>>;
1010

11-
// eslint-disable-next-line max-lines-per-function
1211
export default function enforceEager(value: RuleValue): IRules {
1312
const target = {} as IRules;
1413

packages/vest/src/core/test/test.memo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { useCursor } from 'isolateHooks';
66
import registerPrevRunTest from 'registerPrevRunTest';
77
import { useSuiteId } from 'stateHooks';
88
import type { TestBase } from 'test';
9-
// eslint-disable-next-line max-lines-per-function
9+
1010
export default function bindTestMemo(test: TestBase): {
1111
(fieldName: string, test: TestFn, deps: unknown[]): VestTest;
1212
(fieldName: string, message: string, test: TestFn, deps: unknown[]): VestTest;

packages/vest/src/exports/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { hasOwnProperty, invariant, isPositive } from 'vest-utils';
33

44
import { SuiteSummary } from 'SuiteSummaryTypes';
55

6-
// eslint-disable-next-line max-lines-per-function, max-statements
6+
// eslint-disable-next-line max-statements
77
export function parse(summary: SuiteSummary): ParsedVestObject {
88
invariant(
99
summary && hasOwnProperty(summary, 'valid'),

packages/vest/src/hooks/exclusive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ skip.group = (item: ExclusionItem) =>
4242

4343
//Checks whether a certain test profile excluded by any of the exclusion groups.
4444

45-
// eslint-disable-next-line complexity, max-statements, max-lines-per-function
45+
// eslint-disable-next-line complexity, max-statements
4646
export function isExcluded(testObject: VestTest): boolean {
4747
const { fieldName, groupName } = testObject;
4848

0 commit comments

Comments
 (0)