From 813ab0a65318be340b3b97cedae964dd10305216 Mon Sep 17 00:00:00 2001 From: clayton Date: Wed, 14 Aug 2024 22:23:51 -0700 Subject: [PATCH] Add remark rule to check for common country flag mistakes --- .remarkrc.js | 1 + package-lock.json | 14 +++++++------- package.json | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.remarkrc.js b/.remarkrc.js index bccf678cd4c1..052ee1a2c8d9 100644 --- a/.remarkrc.js +++ b/.remarkrc.js @@ -43,6 +43,7 @@ export default { ['lint-table-cell-padding', false], ['lint-table-pipe-alignment', false], ['message-control', { name: 'lint', source: ['remark-lint', 'remark-lint-osu'] }], + ['osu/lint-country-flags'], ['osu/lint-table-align-style'], ['osu/lint-table-cell-padding'], ['osu/lint-table-no-missing-cells'], diff --git a/package-lock.json b/package-lock.json index 0550f2354120..165e1891d1cb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,7 @@ "remark-lint-no-unused-definitions": "3.1.1", "remark-lint-osu-links": "github:cl8n/remark-lint-osu-links", "remark-lint-osu-wiki-links": "github:MegaApplePi/remark-lint-osu-wiki-links", - "remark-osu": "^0.1.0", + "remark-osu": "^0.2.0", "remark-preset-lint-markdown-style-guide": "5.1.2", "vfile-reporter-github-action": "^2.0.0" } @@ -3626,9 +3626,9 @@ } }, "node_modules/remark-osu": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/remark-osu/-/remark-osu-0.1.0.tgz", - "integrity": "sha512-mJNbRdJE4zQOJtq/+P7zNnT9X97xabiyny8bZz4JbarPfb9fWNWF03wrbJHCpoRwOtdNl3J2JYGQoeqCk4Z1Pw==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/remark-osu/-/remark-osu-0.2.0.tgz", + "integrity": "sha512-RZtGqKWcaOuGMi/PCJZNehydWynJIM49OeFCFh9/HCcCb3latFbbFvq4EzhFJtGK+d2WmXLJ90QJ4WbspaM+UA==", "dependencies": { "unified-lint-rule": "^2.1.2", "unist-util-position": "^5.0.0", @@ -6859,9 +6859,9 @@ } }, "remark-osu": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/remark-osu/-/remark-osu-0.1.0.tgz", - "integrity": "sha512-mJNbRdJE4zQOJtq/+P7zNnT9X97xabiyny8bZz4JbarPfb9fWNWF03wrbJHCpoRwOtdNl3J2JYGQoeqCk4Z1Pw==", + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/remark-osu/-/remark-osu-0.2.0.tgz", + "integrity": "sha512-RZtGqKWcaOuGMi/PCJZNehydWynJIM49OeFCFh9/HCcCb3latFbbFvq4EzhFJtGK+d2WmXLJ90QJ4WbspaM+UA==", "requires": { "unified-lint-rule": "^2.1.2", "unist-util-position": "^5.0.0", diff --git a/package.json b/package.json index 8e5a85465f35..5256ccb743b6 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "remark-lint-no-unused-definitions": "3.1.1", "remark-lint-osu-links": "github:cl8n/remark-lint-osu-links", "remark-lint-osu-wiki-links": "github:MegaApplePi/remark-lint-osu-wiki-links", - "remark-osu": "^0.1.0", + "remark-osu": "^0.2.0", "remark-preset-lint-markdown-style-guide": "5.1.2", "vfile-reporter-github-action": "^2.0.0" },