Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: support negative patterns in files field
Refs stylelint/stylelint#2978 The `files` field of package.json supports negative patterns (e.g. `!**/__tests__`), but `no-unpublished-*` rules have not supported it. This commit makes those rules supporting the negative patterns.
- Loading branch information
1 parent
155f714
commit 2aaa994
Showing
7 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
15 changes: 15 additions & 0 deletions
15
tests/fixtures/no-unpublished/negative-in-files/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"private": true, | ||
"name": "test", | ||
"version": "0.0.0", | ||
"files": [ | ||
"lib", | ||
"!**/__test__" | ||
], | ||
"dependencies": { | ||
"aaa": "0.0.0" | ||
}, | ||
"devDependencies": { | ||
"bbb": "0.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters