Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jun 4, 2024
1 parent c08f6b9 commit 80b1227
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 58 deletions.
2 changes: 1 addition & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const plugins = [
// TODO: this rule doesn't properly handle tab indents
// require('remark-lint-list-item-content-indent'),
listItemBulletIndent,
[listItemIndent, 'space'],
[listItemIndent, 'one'],
noAutoLinkWithoutProtocol,
noBlockquoteWithoutMarker,
noEmphasisAsHeading,
Expand Down
111 changes: 59 additions & 52 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,71 +41,71 @@
"arrify": "^3.0.0",
"case": "^1.6.3",
"emoji-regex": "^10.2.1",
"execa": "^8.0.1",
"execa": "^9.1.0",
"github-slugger": "^2.0.0",
"github-url-to-object": "^4.0.6",
"globby": "^13.2.2",
"globby": "^14.0.1",
"got": "^13.0.0",
"is-github-url": "^1.2.2",
"is-url-superb": "^6.1.0",
"mdast-util-to-string": "^4.0.0",
"meow": "^12.1.1",
"ora": "^7.0.1",
"meow": "^13.2.0",
"ora": "^8.0.1",
"parse-github-url": "^1.0.2",
"read-pkg": "^8.1.0",
"read-pkg": "^9.0.1",
"remark": "^15.0.1",
"remark-lint": "^9.1.2",
"remark-lint-blockquote-indentation": "^3.1.2",
"remark-lint-checkbox-character-style": "^4.1.2",
"remark-lint-checkbox-content-indent": "^4.1.2",
"remark-lint-code-block-style": "^3.1.2",
"remark-lint-definition-case": "^3.1.2",
"remark-lint-definition-spacing": "^3.1.2",
"remark-lint": "^10.0.0",
"remark-lint-blockquote-indentation": "^4.0.0",
"remark-lint-checkbox-character-style": "^5.0.0",
"remark-lint-checkbox-content-indent": "^5.0.0",
"remark-lint-code-block-style": "^4.0.0",
"remark-lint-definition-case": "^4.0.0",
"remark-lint-definition-spacing": "^4.0.0",
"remark-lint-double-link": "^0.2.0",
"remark-lint-emphasis-marker": "^3.1.2",
"remark-lint-fenced-code-marker": "^3.1.2",
"remark-lint-file-extension": "^2.1.2",
"remark-lint-final-newline": "^2.1.2",
"remark-lint-hard-break-spaces": "^3.1.2",
"remark-lint-heading-style": "^3.1.2",
"remark-lint-link-title-style": "^3.1.2",
"remark-lint-list-item-bullet-indent": "^4.1.2",
"remark-lint-list-item-content-indent": "^3.1.2",
"remark-lint-list-item-indent": "^3.1.2",
"remark-lint-emphasis-marker": "^4.0.0",
"remark-lint-fenced-code-marker": "^4.0.0",
"remark-lint-file-extension": "^3.0.0",
"remark-lint-final-newline": "^3.0.0",
"remark-lint-hard-break-spaces": "^4.0.0",
"remark-lint-heading-style": "^4.0.0",
"remark-lint-link-title-style": "^4.0.0",
"remark-lint-list-item-bullet-indent": "^5.0.0",
"remark-lint-list-item-content-indent": "^4.0.0",
"remark-lint-list-item-indent": "^4.0.0",
"remark-lint-match-punctuation": "^0.2.1",
"remark-lint-no-auto-link-without-protocol": "^3.1.2",
"remark-lint-no-blockquote-without-marker": "^5.1.2",
"remark-lint-no-emphasis-as-heading": "^3.1.2",
"remark-lint-no-blockquote-without-marker": "^6.0.0",
"remark-lint-no-emphasis-as-heading": "^4.0.0",
"remark-lint-no-empty-sections": "^4.0.0",
"remark-lint-no-file-name-articles": "^2.1.2",
"remark-lint-no-file-name-consecutive-dashes": "^2.1.2",
"remark-lint-no-file-name-irregular-characters": "^2.1.2",
"remark-lint-no-file-name-mixed-case": "^2.1.2",
"remark-lint-no-file-name-outer-dashes": "^2.1.2",
"remark-lint-no-heading-content-indent": "^4.1.2",
"remark-lint-no-heading-indent": "^4.1.2",
"remark-lint-no-heading-punctuation": "^3.1.2",
"remark-lint-no-file-name-articles": "^3.0.0",
"remark-lint-no-file-name-consecutive-dashes": "^3.0.0",
"remark-lint-no-file-name-irregular-characters": "^3.0.0",
"remark-lint-no-file-name-mixed-case": "^3.0.0",
"remark-lint-no-file-name-outer-dashes": "^3.0.0",
"remark-lint-no-heading-content-indent": "^5.0.0",
"remark-lint-no-heading-indent": "^5.0.0",
"remark-lint-no-heading-punctuation": "^4.0.0",
"remark-lint-no-inline-padding": "^4.1.2",
"remark-lint-no-multiple-toplevel-headings": "^3.1.2",
"remark-lint-no-multiple-toplevel-headings": "^4.0.0",
"remark-lint-no-repeat-punctuation": "^0.1.4",
"remark-lint-no-shell-dollars": "^3.1.2",
"remark-lint-no-table-indentation": "^4.1.2",
"remark-lint-no-undefined-references": "^4.2.1",
"remark-lint-no-unneeded-full-reference-image": "^3.1.2",
"remark-lint-no-unneeded-full-reference-link": "^3.1.2",
"remark-lint-no-unused-definitions": "^3.1.2",
"remark-lint-ordered-list-marker-style": "^3.1.2",
"remark-lint-ordered-list-marker-value": "^3.1.2",
"remark-lint-rule-style": "^3.1.2",
"remark-lint-strong-marker": "^3.1.2",
"remark-lint-table-cell-padding": "^4.1.3",
"remark-lint-table-pipe-alignment": "^3.1.3",
"remark-lint-table-pipes": "^4.1.2",
"remark-lint-unordered-list-marker-style": "^3.1.2",
"remark-lint-no-shell-dollars": "^4.0.0",
"remark-lint-no-table-indentation": "^5.0.0",
"remark-lint-no-undefined-references": "^5.0.0",
"remark-lint-no-unneeded-full-reference-image": "^4.0.0",
"remark-lint-no-unneeded-full-reference-link": "^4.0.0",
"remark-lint-no-unused-definitions": "^4.0.0",
"remark-lint-ordered-list-marker-style": "^4.0.0",
"remark-lint-ordered-list-marker-value": "^4.0.0",
"remark-lint-rule-style": "^4.0.0",
"remark-lint-strong-marker": "^4.0.0",
"remark-lint-table-cell-padding": "^5.0.0",
"remark-lint-table-pipe-alignment": "^4.0.0",
"remark-lint-table-pipes": "^5.0.0",
"remark-lint-unordered-list-marker-style": "^4.0.0",
"rmfr": "^2.0.0",
"tempy": "^3.1.0",
"to-vfile": "^8.0.0",
"unified-lint-rule": "^2.1.2",
"unified-lint-rule": "^3.0.0",
"unist-util-find": "^3.0.0",
"unist-util-find-all-after": "^5.0.0",
"unist-util-find-all-before": "^5.0.0",
Expand All @@ -114,11 +114,18 @@
"vfile-reporter-pretty": "^7.0.0"
},
"devDependencies": {
"ava": "^5.3.1",
"sinon": "^16.1.0",
"xo": "^0.56.0"
"ava": "^6.1.3",
"sinon": "^18.0.0",
"xo": "^0.58.0"
},
"xo": {
"rules": {}
"rules": {
"ava/no-ignored-test-files": "off"
}
},
"ava": {
"files": [
"!test/integration.js"
]
}
}
6 changes: 3 additions & 3 deletions rules/badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ const badgeUrlAllowList = new Set([
'https://github.com/sindresorhus/awesome',
]);

const badgeSrcUrlAllowList = new Set([
const badgeSourceUrlAllowList = new Set([
'https://awesome.re/badge.svg',
'https://awesome.re/badge-flat.svg',
'https://awesome.re/badge-flat2.svg',
]);

const isValidBadgeUrl = url => badgeUrlAllowList.has(url);
const isValidBadgeSrcUrl = url => badgeSrcUrlAllowList.has(url);
const isValidBadgeSourceUrl = url => badgeSourceUrlAllowList.has(url);

const badgeRule = lintRule('remark-lint:awesome-badge', (ast, file) => {
visit(ast, 'heading', (node, index) => {
Expand All @@ -30,7 +30,7 @@ const badgeRule = lintRule('remark-lint:awesome-badge', (ast, file) => {

for (const child2 of child.children) {
if (child2.type === 'image') {
if (!isValidBadgeSrcUrl(child2.url)) {
if (!isValidBadgeSourceUrl(child2.url)) {
file.message('Invalid badge source', child2);
return;
}
Expand Down
7 changes: 5 additions & 2 deletions rules/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import heading from './heading.js';
import badge from './badge.js';
import contributing from './contributing.js';
import gitRepoAge from './git-repo-age.js';
/// import gitRepoAge from './git-repo-age.js';
import github from './github.js';
import license from './license.js';
import listItem from './list-item.js';
Expand All @@ -13,7 +13,10 @@ const rules = [
heading,
badge,
contributing,
gitRepoAge,

// Disabled for now as it means we cannot sparsely check out the repo.
// gitRepoAge,

github,
license,
listItem,
Expand Down

0 comments on commit 80b1227

Please sign in to comment.