chore: update @electron/lint-roller to 3.1.1 (#47202)
* chore: update @electron/lint-roller to 3.1.1 * docs: fix broken link in breaking-changes.md * chore: fix for Node.js versions without require(esm)
This commit is contained in:
parent
ac5e3c76f3
commit
5e3b5ef04c
4 changed files with 27 additions and 308 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue