Skip to content

Commit 342ec24

Browse files
committed
Selectively disable unicorn/consistent-function-scoping
Although these functions could be moved into the global scope, keep them local for readability. Signed-off-by: Kevin Locke <[email protected]>
1 parent e8ff9ef commit 342ec24

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/git-branch-is.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ describe('gitBranchIs', () => {
5656
});
5757

5858
it('callback true for function comparing branch name', (done) => {
59+
// eslint-disable-next-line unicorn/consistent-function-scoping
5960
function checkBranchName(branchName) {
6061
return branchName === BRANCH_CURRENT;
6162
}
@@ -67,6 +68,7 @@ describe('gitBranchIs', () => {
6768
});
6869

6970
it('callback false for function returning false', (done) => {
71+
// eslint-disable-next-line unicorn/consistent-function-scoping
7072
function returnsFalse(branchName) {
7173
return false;
7274
}

0 commit comments

Comments
 (0)