Use util.parseArgs
instead of yargs
#454
Annotations
4 errors and 1 warning
Run pnpm run test:
src/cli/parse-argv.ts#L47
TypeError: Unknown option '--no-eslintrc'. To specify a positional argument starting with a '-', place it at the end of the command after '--', as in '-- "--no-eslintrc"
❯ Module.parseArgv src/cli/parse-argv.ts:47:35
❯ src/cli/parse-argv.test.ts:13:12
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_PARSE_ARGS_UNKNOWN_OPTION' }
|
Run pnpm run test:
src/cli/parse-argv.ts#L47
TypeError: Unknown option '--no-quiet'. To specify a positional argument starting with a '-', place it at the end of the command after '--', as in '-- "--no-quiet"
❯ Module.parseArgv src/cli/parse-argv.ts:47:35
❯ src/cli/parse-argv.test.ts:44:12
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_PARSE_ARGS_UNKNOWN_OPTION' }
|
Run pnpm run test:
src/cli/parse-argv.ts#L47
TypeError: Unknown option '--no-cache'. To specify a positional argument starting with a '-', place it at the end of the command after '--', as in '-- "--no-cache"
❯ Module.parseArgv src/cli/parse-argv.ts:47:35
❯ src/cli/parse-argv.test.ts:48:12
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_PARSE_ARGS_UNKNOWN_OPTION' }
|
Run pnpm run test
Process completed with exit code 1.
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Loading