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:
David Sanders 2025-05-25 05:58:55 -07:00 committed by GitHub
commit 5e3b5ef04c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 27 additions and 308 deletions

View file

@ -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