Skip to content

Commit

Permalink
chore: pnpm exec prettier --write .
Browse files Browse the repository at this point in the history
  • Loading branch information
mizdra committed Jan 9, 2023
1 parent a958928 commit 8782fd2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
18 changes: 9 additions & 9 deletions bin/_eslint-interactive.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// @ts-check
import { run } from '../dist/index.js';

run({
argv: process.argv,
}).catch((error) => {
console.error(error);
process.exit(1);
});
// @ts-check
import { run } from '../dist/index.js';

run({
argv: process.argv,
}).catch((error) => {
console.error(error);
process.exit(1);
});
46 changes: 23 additions & 23 deletions bin/eslint-interactive.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
#!/usr/bin/env node
// @ts-check

import { spawnSync } from 'child_process';
import { resolve } from 'path';
import { dirname, join } from 'path';
import { fileURLToPath } from 'url';

const dir = join(dirname(fileURLToPath(import.meta.url)));

const scriptFile = resolve(dir, '_eslint-interactive.js');

spawnSync(
'node',
[
'--enable-source-maps',
'--unhandled-rejections=strict',
'--experimental-import-meta-resolve',
scriptFile,
...process.argv.slice(2),
],
{ stdio: 'inherit' },
);
#!/usr/bin/env node
// @ts-check

import { spawnSync } from 'child_process';
import { resolve } from 'path';
import { dirname, join } from 'path';
import { fileURLToPath } from 'url';

const dir = join(dirname(fileURLToPath(import.meta.url)));

const scriptFile = resolve(dir, '_eslint-interactive.js');

spawnSync(
'node',
[
'--enable-source-maps',
'--unhandled-rejections=strict',
'--experimental-import-meta-resolve',
scriptFile,
...process.argv.slice(2),
],
{ stdio: 'inherit' },
);

0 comments on commit 8782fd2

Please sign in to comment.