diff --git a/.github/workflows/quality-checks.yaml b/.github/workflows/quality-checks.yaml index d65862a..af0f44d 100644 --- a/.github/workflows/quality-checks.yaml +++ b/.github/workflows/quality-checks.yaml @@ -11,6 +11,7 @@ jobs: - lint:css - lint:md - lint:md:urls:relative + - lint:md:urls:external - lint:md:consistency steps: - name: Checkout diff --git a/.remark-lint-no-dead-urls.mjs b/.remark-lint-no-dead-urls.mjs new file mode 100644 index 0000000..610f197 --- /dev/null +++ b/.remark-lint-no-dead-urls.mjs @@ -0,0 +1,14 @@ +import remarkNoDeadUrls from "remark-lint-no-dead-urls"; + +/** @type {Omit} */ +export default { + plugins: [ + remarkNoDeadUrls, + { + skipUrlPatterns: [ + // These return 403 (Forbidden) to checks + 'https://codepen.io', + ], + }, + ], +}; diff --git a/README.md b/README.md index 6e66e77..b490317 100644 --- a/README.md +++ b/README.md @@ -199,7 +199,7 @@ You can choose one of the following existing themes to begin: ##### Custom Themes -Or you can create your own theme & import it. Check example themes at [existing themes](./src/themes/). [The HTML](./src/ez-consent.js#L18) uses only a few classes using [BEM](http://getbem.com/naming/) naming convention. +Or you can create your own theme & import it. Check example themes at [existing themes](./src/themes/). [The HTML](./src/ez-consent.js#L18) uses only a few classes using [BEM](https://getbem.com/naming/) naming convention. You can also add your own class names using `css_classes` option, see [initialization](#2-initialize) for details. diff --git a/package.json b/package.json index 0f2e9b9..9e92c3f 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "lint:css": "stylelint \"**/*.css\"", "lint:md": "markdownlint **/*.md --ignore node_modules", "lint:md:urls:relative": "remark . --frail --use remark-validate-links", - "lint:md:urls:external": "remark . --frail --use remark-lint-no-dead-urls", + "lint:md:urls:external": "remark . --frail --rc-path .remark-lint-no-dead-urls.mjs", "lint:md:consistency": "remark . --frail --use remark-preset-lint-consistent" }, "repository": {