File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ concurrency:
1515 cancel-in-progress : true
1616
1717env :
18- PYTHON_VERSION : ' 3.10'
18+ PYTHON_VERSION : " 3.10"
1919 NODE_VERSION : lts/*
2020
2121jobs :
@@ -156,7 +156,7 @@ jobs:
156156 persist-credentials : false
157157 - run : shellcheck -V
158158 - name : Lint Shell scripts
159- run : tools/lint-sh.js .
159+ run : tools/lint-sh.mjs .
160160 lint-codeowners :
161161 if : github.event.pull_request.draft == false
162162 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 11#!/usr/bin/env node
2- 'use strict' ;
32
4- const { execSync, spawn } = require ( 'child_process' ) ;
5- const { promises : fs , readdirSync, statSync } = require ( 'fs' ) ;
6- const { extname, join, relative, resolve } = require ( 'path' ) ;
3+ import { execSync , spawn } from 'child_process' ;
4+ import { promises as fs , readdirSync , statSync } from 'fs' ;
5+ import { extname , join , relative , resolve } from 'path' ;
6+ import process from 'process' ;
77
88const FIX_MODE_ENABLED = process . argv . includes ( '--fix' ) ;
99const USE_NPX = process . argv . includes ( '--from-npx' ) ;
@@ -178,7 +178,11 @@ if (
178178 SPAWN_OPTIONS . cwd = process . cwd ( ) ;
179179 checkFiles ( entryPoint ) . catch ( onError ) ;
180180 } else {
181- onError ( new Error ( 'You must provide a valid directory or file path. ' +
182- `Received '${ process . argv [ 2 ] } '.` ) ) ;
181+ onError (
182+ new Error (
183+ 'You must provide a valid directory or file path. ' +
184+ `Received '${ process . argv [ 2 ] } '.`
185+ )
186+ ) ;
183187 }
184188}
You can’t perform that action at this time.
0 commit comments