Add latest changes from gitlab-org/gitlab@master

This commit is contained in:
GitLab Bot
2022-12-23 15:09:45 +00:00
parent 23634aa773
commit 99c1dfd5e3
109 changed files with 813 additions and 421 deletions

View File

@ -0,0 +1,14 @@
/**
* Look up the global node modules directory.
*
* Because we install markdownlint packages globally
* in the Docker image where this runs, we need to
* provide the path to the global install location
* when referencing global functions from our own node
* modules.
*
* Image:
* https://gitlab.com/gitlab-org/gitlab-docs/-/blob/main/dockerfiles/gitlab-docs-lint-markdown.Dockerfile
*/
const { execSync } = require('child_process');
module.exports.globalPath = execSync('yarn global dir').toString().trim() + '/node_modules/';

View File

@ -1,4 +1,9 @@
const { forEachLine, getLineMetadata, isBlankLine } = require(`markdownlint-rule-helpers`);
const { globalPath } = require('../require_helper');
const {
forEachLine,
getLineMetadata,
isBlankLine,
} = require(`${globalPath}/markdownlint-rule-helpers`);
module.exports = {
names: ['tabs-blank-lines'],

View File

@ -1,4 +1,5 @@
const { forEachLine, getLineMetadata } = require(`markdownlint-rule-helpers`);
const { globalPath } = require('../require_helper');
const { forEachLine, getLineMetadata } = require(`${globalPath}/markdownlint-rule-helpers`);
module.exports = {
names: ['tabs-title-markup'],

View File

@ -1,4 +1,9 @@
const { forEachLine, getLineMetadata, isBlankLine } = require(`markdownlint-rule-helpers`);
const { globalPath } = require('../require_helper');
const {
forEachLine,
getLineMetadata,
isBlankLine,
} = require(`${globalPath}/markdownlint-rule-helpers`);
module.exports = {
names: ['tabs-title-text'],