-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: all rule configs are arrays. This is a breaking change only if you are importing and processing the exported value yourself. Otherwise, this shouldn't affect you. Sorry for the major bump. Just being careful.
- Loading branch information
Showing
3 changed files
with
132 additions
and
125 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
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,7 @@ | ||
import test from 'ava' | ||
import exported from '..' | ||
|
||
test('rule configs are arrays', (t) => { | ||
const nonArrayConfigs = Object.entries(exported.rules).filter(([_rule, config]) => !Array.isArray(config)) | ||
t.deepEqual(nonArrayConfigs, []) | ||
}) |