From 80b1227758b6e9ebed93404eed02fbfcdfcb8178 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Tue, 4 Jun 2024 14:56:21 +0200 Subject: [PATCH] Update dependencies --- config.js | 2 +- package.json | 111 ++++++++++++++++++++++++++----------------------- rules/badge.js | 6 +-- rules/index.js | 7 +++- 4 files changed, 68 insertions(+), 58 deletions(-) diff --git a/config.js b/config.js index f9331ff..41665e0 100644 --- a/config.js +++ b/config.js @@ -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, diff --git a/package.json b/package.json index 72ba1a4..f795445 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" + ] } } diff --git a/rules/badge.js b/rules/badge.js index b1795f6..0e587c0 100644 --- a/rules/badge.js +++ b/rules/badge.js @@ -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) => { @@ -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; } diff --git a/rules/index.js b/rules/index.js index b32bd22..8781d01 100644 --- a/rules/index.js +++ b/rules/index.js @@ -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'; @@ -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,