Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7706f5c

Browse filesBrowse files
authored
chore: autofix all
1 parent a48dcf3 commit 7706f5c
Copy full SHA for 7706f5c

File tree

Expand file treeCollapse file tree

6 files changed

+13
-13
lines changed
Filter options
Expand file treeCollapse file tree

6 files changed

+13
-13
lines changed

‎src/rules/no-default-alt-text.js

Copy file name to clipboardExpand all lines: src/rules/no-default-alt-text.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
names: ["GH001", "no-default-alt-text"],
1818
description: "Images should have meaningful alternative text (alt text)",
1919
information: new URL(
20-
"https://github.com/github/markdownlint-github/blob/main/docs/rules/GH001-no-default-alt-text.md"
20+
"https://github.com/github/markdownlint-github/blob/main/docs/rules/GH001-no-default-alt-text.md",
2121
),
2222
tags: ["accessibility", "images"],
2323
function: function GH001(params, onError) {

‎src/rules/no-generic-link-text.js

Copy file name to clipboardExpand all lines: src/rules/no-generic-link-text.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ module.exports = {
1414
description:
1515
"Avoid using generic link text like `Learn more` or `Click here`",
1616
information: new URL(
17-
"https://github.com/github/markdownlint-github/blob/main/docs/rules/GH002-no-generic-link-text.md"
17+
"https://github.com/github/markdownlint-github/blob/main/docs/rules/GH002-no-generic-link-text.md",
1818
),
1919
tags: ["accessibility", "links"],
2020
function: function GH002(params, onError) {
2121
// markdown syntax
2222
let bannedLinkTexts = bannedLinkText.concat(
23-
params.config.additional_banned_texts || []
23+
params.config.additional_banned_texts || [],
2424
);
2525
const exceptions = params.config.exceptions || [];
2626
if (exceptions.length > 0) {
2727
bannedLinkTexts = bannedLinkTexts.filter(
28-
(text) => !exceptions.includes(text)
28+
(text) => !exceptions.includes(text),
2929
);
3030
}
3131
const inlineTokens = params.tokens.filter((t) => t.type === "inline");

‎test/no-default-alt-text.test.js

Copy file name to clipboardExpand all lines: test/no-default-alt-text.test.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ describe("GH001: No Default Alt Text", () => {
8484
const results = await runTest(strings, altTextRule);
8585

8686
expect(results[0].ruleDescription).toMatch(
87-
"Images should have meaningful alternative text (alt text)"
87+
"Images should have meaningful alternative text (alt text)",
8888
);
8989
expect(results[0].errorRange).toEqual([3, 36]);
9090
expect(results[1].ruleDescription).toMatch(
91-
"Images should have meaningful alternative text (alt text)"
91+
"Images should have meaningful alternative text (alt text)",
9292
);
9393
expect(results[1].errorRange).toEqual([11, 36]);
9494
});

‎test/no-generic-link-text.test.js

Copy file name to clipboardExpand all lines: test/no-generic-link-text.test.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe("GH002: No Generic Link Text", () => {
5555
const results = await runTest(strings, noGenericLinkTextRule);
5656

5757
expect(results[0].ruleDescription).toMatch(
58-
/Avoid using generic link text like `Learn more` or `Click here`/
58+
/Avoid using generic link text like `Learn more` or `Click here`/,
5959
);
6060
expect(results[0].errorDetail).toBe("For link: Click here");
6161
});
@@ -65,7 +65,7 @@ describe("GH002: No Generic Link Text", () => {
6565
["[something](www.github.com)"],
6666
noGenericLinkTextRule,
6767
// eslint-disable-next-line camelcase
68-
{ additional_banned_texts: ["something"] }
68+
{ additional_banned_texts: ["something"] },
6969
);
7070

7171
const failedRules = results
@@ -80,7 +80,7 @@ describe("GH002: No Generic Link Text", () => {
8080
const results = await runTest(
8181
["[Link](primer.style/components/Link)"],
8282
noGenericLinkTextRule,
83-
{ exceptions: ["link"] }
83+
{ exceptions: ["link"] },
8484
);
8585

8686
for (const result of results) {

‎test/usage.test.js

Copy file name to clipboardExpand all lines: test/usage.test.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ describe("usage", () => {
5353
// confirm config is set by consumer
5454
expect(options).toHaveProperty(
5555
toTestOptions[0],
56-
consumerConfig[toTestOptions[0]]
56+
consumerConfig[toTestOptions[0]],
5757
);
5858
expect(options).toHaveProperty(
5959
toTestOptions[1],
60-
consumerConfig[toTestOptions[1]]
60+
consumerConfig[toTestOptions[1]],
6161
);
6262
expect(options).toHaveProperty(
6363
toTestOptions[2],
64-
consumerConfig[toTestOptions[2]]
64+
consumerConfig[toTestOptions[2]],
6565
);
6666
});
6767
});

‎test/utils/run-test.js

Copy file name to clipboardExpand all lines: test/utils/run-test.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function runTest(strings, rule, ruleConfig) {
2424
resolve(result[0][0]);
2525
});
2626
});
27-
})
27+
}),
2828
);
2929
}
3030

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.