mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
build: also lint mjs files (#44581)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { parseDocs } from '@electron/docs-parser';
|
||||
|
||||
import { promises } from 'node:fs';
|
||||
import { resolve } from 'node:path';
|
||||
|
||||
|
||||
@@ -138,7 +138,7 @@ const LINTERS = [{
|
||||
key: 'javascript',
|
||||
roots: ['build', 'default_app', 'lib', 'npm', 'script', 'spec'],
|
||||
ignoreRoots: ['spec/node_modules'],
|
||||
test: filename => filename.endsWith('.js') || filename.endsWith('.ts'),
|
||||
test: filename => filename.endsWith('.js') || filename.endsWith('.ts') || filename.endsWith('.mjs'),
|
||||
run: async (opts, filenames) => {
|
||||
const eslint = new ESLint({
|
||||
// Do not use the lint cache on CI builds
|
||||
|
||||
Reference in New Issue
Block a user