mirror of
https://github.com/nodejs/node.git
synced 2026-12-06 06:38:45 -05:00
Update remark@13.0.0, remark-lint-preset-node@2.0.0 and other dependencies in the lint-md rollup. PR-URL: https://github.com/nodejs/node/pull/35905 Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
30 lines
916 B
JavaScript
30 lines
916 B
JavaScript
'use strict';
|
|
|
|
// To aid in future maintenance, this layout closely matches remark-cli/cli.js.
|
|
// https://github.com/remarkjs/remark/blob/master/packages/remark-cli/cli.js
|
|
|
|
const start = require('unified-args');
|
|
const extensions = require('markdown-extensions');
|
|
const processor = require('remark');
|
|
const proc = require('remark/package.json');
|
|
const cli = require('../package.json');
|
|
const lintNode = require('remark-preset-lint-node');
|
|
const gfm = require('remark-gfm');
|
|
|
|
start({
|
|
processor: processor().use(gfm).use(lintNode),
|
|
name: proc.name,
|
|
description: cli.description,
|
|
version: [
|
|
proc.name + ': ' + proc.version,
|
|
cli.name + ': ' + cli.version,
|
|
].join(', '),
|
|
pluginPrefix: proc.name,
|
|
presetPrefix: proc.name + '-preset',
|
|
packageField: proc.name + 'Config',
|
|
rcName: '.' + proc.name + 'rc',
|
|
ignoreName: '.' + proc.name + 'ignore',
|
|
extensions: extensions,
|
|
detectConfig: false,
|
|
});
|