feat: suggest making lint script in wizard #673
+88
−1
Draft
Annotations
5 errors
Test:
test/cli.spec.ts#L61
ExecaError: Command failed with exit code 1: node /home/runner/work/eslint-config/eslint-config/bin/index.js '--lint=keep'
file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400
throw new CACError(`Unknown option \`${name.length > 1 ? `--${name}` : `-${name}`}\``);
^
CACError: Unknown option `--lint`
at Command.checkUnknownOptions (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400:17)
at CAC.runMatchedCommand (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:598:13)
at CAC.parse (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:537:12)
at file:///home/runner/work/eslint-config/eslint-config/dist/cli.js:596:5
at ModuleJob.run (node:internal/modules/esm/module_job:271:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:578:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)
Node.js v22.14.0
❯ Command.checkUnknownOptions node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400:17
❯ CAC.runMatchedCommand node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:598:13
❯ CAC.parse node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:537:12
❯ dist/cli.js:596:5
❯ getFinalError node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/final-error.js:6:9
❯ makeError node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/result.js:108:16
❯ getAsyncResult node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/main-async.js:167:4
❯ handlePromise node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/main-async.js:150:17
❯ test/cli.spec.ts:61:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { shortMessage: 'Command failed with exit code 1: node /home/runner/work/eslint-config/eslint-config/bin/index.js \'--lint=keep\'', command: 'node /home/runner/work/eslint-config/eslint-config/bin/index.js --lint=keep', escapedCommand: 'node /home/runner/work/eslint-config/eslint-config/bin/index.js \'--lint=keep\'', cwd: '/home/runner/work/eslint-config/eslint-config/.temp/bm4py64byyq', durationMs: 212.547594, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 1, stdout: '', stderr: 'file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400\n throw new CACError(`Unknown option \`${name.length > 1 ? `--${name}` : `-${name}`}\``);\n ^\n\nCACError: Unknown option `--lint`\n at Command.checkUnknownOptions (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400:17)\n at CAC.runMatchedCommand (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:598:13)\n at CAC.parse (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:537:12)\n at file:///home/runner/work/eslint-config/eslint-config/dist/cli.js:596:5\n at ModuleJob.run (node:internal/modules/esm/module_job:271:25)\n at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:578:26)\n at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)\n\nNode.js v22.14.0', stdio: [ undefined, '', 'file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400\n throw new CACError(`Unknown option \`${name.length > 1 ? `--${name}` : `-${name}`}\``);\n ^\n\nCACError: Unknown option `--lint`\n at Command.checkUnknownOptions (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400:17)\n at CAC.runMatchedC
|
Test:
test/cli.spec.ts#L69
ExecaError: Command failed with exit code 1: node /home/runner/work/eslint-config/eslint-config/bin/index.js '--lint=check'
file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400
throw new CACError(`Unknown option \`${name.length > 1 ? `--${name}` : `-${name}`}\``);
^
CACError: Unknown option `--lint`
at Command.checkUnknownOptions (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400:17)
at CAC.runMatchedCommand (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:598:13)
at CAC.parse (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:537:12)
at file:///home/runner/work/eslint-config/eslint-config/dist/cli.js:596:5
at ModuleJob.run (node:internal/modules/esm/module_job:271:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:578:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)
Node.js v22.14.0
❯ Command.checkUnknownOptions node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400:17
❯ CAC.runMatchedCommand node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:598:13
❯ CAC.parse node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:537:12
❯ dist/cli.js:596:5
❯ getFinalError node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/final-error.js:6:9
❯ makeError node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/result.js:108:16
❯ getAsyncResult node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/main-async.js:167:4
❯ handlePromise node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/main-async.js:150:17
❯ test/cli.spec.ts:69:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { shortMessage: 'Command failed with exit code 1: node /home/runner/work/eslint-config/eslint-config/bin/index.js \'--lint=check\'', command: 'node /home/runner/work/eslint-config/eslint-config/bin/index.js --lint=check', escapedCommand: 'node /home/runner/work/eslint-config/eslint-config/bin/index.js \'--lint=check\'', cwd: '/home/runner/work/eslint-config/eslint-config/.temp/bm4py64byyq', durationMs: 231.597512, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 1, stdout: '', stderr: 'file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400\n throw new CACError(`Unknown option \`${name.length > 1 ? `--${name}` : `-${name}`}\``);\n ^\n\nCACError: Unknown option `--lint`\n at Command.checkUnknownOptions (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400:17)\n at CAC.runMatchedCommand (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:598:13)\n at CAC.parse (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:537:12)\n at file:///home/runner/work/eslint-config/eslint-config/dist/cli.js:596:5\n at ModuleJob.run (node:internal/modules/esm/module_job:271:25)\n at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:578:26)\n at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)\n\nNode.js v22.14.0', stdio: [ undefined, '', 'file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400\n throw new CACError(`Unknown option \`${name.length > 1 ? `--${name}` : `-${name}`}\``);\n ^\n\nCACError: Unknown option `--lint`\n at Command.checkUnknownOptions (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400:17)\n at CAC.runMatc
|
Test:
test/cli.spec.ts#L77
ExecaError: Command failed with exit code 1: node /home/runner/work/eslint-config/eslint-config/bin/index.js '--lint=fix'
file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400
throw new CACError(`Unknown option \`${name.length > 1 ? `--${name}` : `-${name}`}\``);
^
CACError: Unknown option `--lint`
at Command.checkUnknownOptions (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400:17)
at CAC.runMatchedCommand (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:598:13)
at CAC.parse (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:537:12)
at file:///home/runner/work/eslint-config/eslint-config/dist/cli.js:596:5
at ModuleJob.run (node:internal/modules/esm/module_job:271:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:578:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)
Node.js v22.14.0
❯ Command.checkUnknownOptions node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400:17
❯ CAC.runMatchedCommand node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:598:13
❯ CAC.parse node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:537:12
❯ dist/cli.js:596:5
❯ getFinalError node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/final-error.js:6:9
❯ makeError node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/result.js:108:16
❯ getAsyncResult node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/main-async.js:167:4
❯ handlePromise node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/main-async.js:150:17
❯ test/cli.spec.ts:77:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { shortMessage: 'Command failed with exit code 1: node /home/runner/work/eslint-config/eslint-config/bin/index.js \'--lint=fix\'', command: 'node /home/runner/work/eslint-config/eslint-config/bin/index.js --lint=fix', escapedCommand: 'node /home/runner/work/eslint-config/eslint-config/bin/index.js \'--lint=fix\'', cwd: '/home/runner/work/eslint-config/eslint-config/.temp/bm4py64byyq', durationMs: 180.18769, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 1, stdout: '', stderr: 'file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400\n throw new CACError(`Unknown option \`${name.length > 1 ? `--${name}` : `-${name}`}\``);\n ^\n\nCACError: Unknown option `--lint`\n at Command.checkUnknownOptions (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400:17)\n at CAC.runMatchedCommand (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:598:13)\n at CAC.parse (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:537:12)\n at file:///home/runner/work/eslint-config/eslint-config/dist/cli.js:596:5\n at ModuleJob.run (node:internal/modules/esm/module_job:271:25)\n at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:578:26)\n at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)\n\nNode.js v22.14.0', stdio: [ undefined, '', 'file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400\n throw new CACError(`Unknown option \`${name.length > 1 ? `--${name}` : `-${name}`}\``);\n ^\n\nCACError: Unknown option `--lint`\n at Command.checkUnknownOptions (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400:17)\n at CAC.runMatchedComman
|
Test:
test/cli.spec.ts#L85
ExecaError: Command failed with exit code 1: node /home/runner/work/eslint-config/eslint-config/bin/index.js '--lint=keep'
file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400
throw new CACError(`Unknown option \`${name.length > 1 ? `--${name}` : `-${name}`}\``);
^
CACError: Unknown option `--lint`
at Command.checkUnknownOptions (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400:17)
at CAC.runMatchedCommand (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:598:13)
at CAC.parse (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:537:12)
at file:///home/runner/work/eslint-config/eslint-config/dist/cli.js:596:5
at ModuleJob.run (node:internal/modules/esm/module_job:271:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:578:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)
Node.js v22.14.0
❯ Command.checkUnknownOptions node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400:17
❯ CAC.runMatchedCommand node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:598:13
❯ CAC.parse node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:537:12
❯ dist/cli.js:596:5
❯ getFinalError node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/final-error.js:6:9
❯ makeError node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/result.js:108:16
❯ getAsyncResult node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/main-async.js:167:4
❯ handlePromise node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/main-async.js:150:17
❯ test/cli.spec.ts:85:22
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { shortMessage: 'Command failed with exit code 1: node /home/runner/work/eslint-config/eslint-config/bin/index.js \'--lint=keep\'', command: 'node /home/runner/work/eslint-config/eslint-config/bin/index.js --lint=keep', escapedCommand: 'node /home/runner/work/eslint-config/eslint-config/bin/index.js \'--lint=keep\'', cwd: '/home/runner/work/eslint-config/eslint-config/.temp/bm4py64byyq', durationMs: 123.678533, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 1, stdout: '', stderr: 'file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400\n throw new CACError(`Unknown option \`${name.length > 1 ? `--${name}` : `-${name}`}\``);\n ^\n\nCACError: Unknown option `--lint`\n at Command.checkUnknownOptions (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400:17)\n at CAC.runMatchedCommand (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:598:13)\n at CAC.parse (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:537:12)\n at file:///home/runner/work/eslint-config/eslint-config/dist/cli.js:596:5\n at ModuleJob.run (node:internal/modules/esm/module_job:271:25)\n at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:578:26)\n at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)\n\nNode.js v22.14.0', stdio: [ undefined, '', 'file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400\n throw new CACError(`Unknown option \`${name.length > 1 ? `--${name}` : `-${name}`}\``);\n ^\n\nCACError: Unknown option `--lint`\n at Command.checkUnknownOptions (file:///home/runner/work/eslint-config/eslint-config/node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs:400:17)\n at CAC.runMatchedC
|
Test
Process completed with exit code 1.
|
Loading