Skip to content

Commit 217da81

Browse files
committed
standard will now ignore test folder
1 parent f69a507 commit 217da81

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@
372372
const { customOrders, computed } = options;
373373
return function compareFunc (xIn, yIn, byIndex = 0) {
374374
const currOrder = order[byIndex] || 'asc';
375-
if (!(currOrder === 'asc' || currOrder === 'desc' || customOrders[currOrder] )) {
375+
if (!(currOrder === 'asc' || currOrder === 'desc' || customOrders[currOrder])) {
376376
return 0
377377
}
378378

dist/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ function getCompareFunc (options = {}) {
366366
const { customOrders, computed } = options;
367367
return function compareFunc (xIn, yIn, byIndex = 0) {
368368
const currOrder = order[byIndex] || 'asc';
369-
if (!(currOrder === 'asc' || currOrder === 'desc' || customOrders[currOrder] )) {
369+
if (!(currOrder === 'asc' || currOrder === 'desc' || customOrders[currOrder])) {
370370
return 0
371371
}
372372

index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function getCompareFunc (options = {}) {
4242
const { customOrders, computed } = options
4343
return function compareFunc (xIn, yIn, byIndex = 0) {
4444
const currOrder = order[byIndex] || 'asc'
45-
if (!(currOrder === 'asc' || currOrder === 'desc' || customOrders[currOrder] )) {
45+
if (!(currOrder === 'asc' || currOrder === 'desc' || customOrders[currOrder])) {
4646
return 0
4747
}
4848

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@
4848
],
4949
"standard": {
5050
"ignore": [
51-
"dist",
52-
"tmp"
51+
"dist/",
52+
"tmp/",
53+
"test/"
5354
]
5455
}
5556
}

0 commit comments

Comments
 (0)