mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
chore: update @electron/lint-roller to 3.1.1 (#47257)
* chore: update @electron/lint-roller to 3.1.1 Co-authored-by: David Sanders <dsanders11@ucsbalum.com> * docs: fix broken link in breaking-changes.md Co-authored-by: David Sanders <dsanders11@ucsbalum.com> * chore: fix for Node.js versions without require(esm) Co-authored-by: David Sanders <dsanders11@ucsbalum.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const { getCodeBlocks } = require('@electron/lint-roller/dist/lib/markdown');
|
||||
|
||||
const { GitProcess } = require('dugite');
|
||||
const { ESLint } = require('eslint');
|
||||
const minimist = require('minimist');
|
||||
@@ -281,6 +279,7 @@ const LINTERS = [{
|
||||
ignoreRoots: ['.git', 'node_modules', 'spec/node_modules'],
|
||||
test: filename => filename.endsWith('.md'),
|
||||
run: async (opts, filenames) => {
|
||||
const { getCodeBlocks } = await import('@electron/lint-roller/dist/lib/markdown.js');
|
||||
let errors = false;
|
||||
|
||||
// Run markdownlint on all Markdown files
|
||||
|
||||
Reference in New Issue
Block a user