Repository: sindresorhus/awesome-lint (js)

Issue:
Add support for the new badge
In the badge rule.

This one `https://awesome.re/badge-flat2.svg`

Pull request description:
Add support for the new Awesome badge
Whitelist the new badge.

Fixes #61 

Patch:
diff --git a/rules/badge.js b/rules/badge.js
index 052df3c..8b53b92 100644
--- a/rules/badge.js
+++ b/rules/badge.js
@@ -9,7 +9,8 @@ const badgeUrlWhitelist = new Set([
 
 const badgeSrcUrlWhitelist = new Set([
 	'https://awesome.re/badge.svg',
-	'https://awesome.re/badge-flat.svg'
+	'https://awesome.re/badge-flat.svg',
+	'https://awesome.re/badge-flat2.svg'
 ]);
 
 const isValidBadgeUrl = url => badgeUrlWhitelist.has(url);


Test patch:
diff --git a/test/fixtures/badge/success2.md b/test/fixtures/badge/success2.md
new file mode 100644
index 0000000..e57e8c2
--- /dev/null
+++ b/test/fixtures/badge/success2.md
@@ -0,0 +1,15 @@
+# Foo [![Awesome](https://awesome.re/badge-flat2.svg)](https://github.com/sindresorhus/awesome)
+
+> Bar
+
+## Contents
+
+- [Foo](#foo)
+
+## Foo
+
+non-empty
+
+## License
+
+non-empty
diff --git a/test/rules/badge.js b/test/rules/badge.js
index 3758489..d997b68 100644
--- a/test/rules/badge.js
+++ b/test/rules/badge.js
@@ -47,3 +47,8 @@ test('badge - success (long)', async t => {
 	const messages = await lint({config, filename: 'test/fixtures/badge/success1.md'});
 	t.deepEqual(messages, []);
 });
+
+test('badge - success (new badge)', async t => {
+	const messages = await lint({config, filename: 'test/fixtures/badge/success2.md'});
+	t.deepEqual(messages, []);
+});