Skip to content

Commit 3b79595

Browse files
fix: allow to setup empty array (#425)
1 parent 5df649c commit 3b79595

File tree

3 files changed

+46
-25
lines changed

3 files changed

+46
-25
lines changed

package-lock.json

Lines changed: 45 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/options.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
}
7878
},
7979
"type": "array",
80-
"minItems": 1,
8180
"items": {
8281
"anyOf": [
8382
{

test/validate-options.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ describe('validate options', () => {
2020
const tests = {
2121
patterns: {
2222
success: [
23+
[],
2324
['test.txt'],
2425
['test.txt', 'test-other.txt'],
2526
[

0 commit comments

Comments
 (0)