fix: ignore top-level function declarations from antfu/eslint #14
Annotations
2 errors and 2 warnings
src/index.test.ts > yarn analyze command > should execute with valid ignore rules:
src/index.test.ts#L15
ExecaError: Command failed with exit code 1: yarn analyze ./test/ '--ignore=vue-strong,rrd'
node:fs:1507
const result = binding.readdir(
^
Error: ENOENT: no such file or directory, scandir './test/'
at Object.readdirSync (node:fs:1507:26)
at Ft (file:///home/runner/work/vue-mess-detector/vue-mess-detector/dist/vue-mess-detector.es.js:1422:16)
at Do (file:///home/runner/work/vue-mess-detector/vue-mess-detector/dist/vue-mess-detector.es.js:1431:41)
at Object.handler (file:///home/runner/work/vue-mess-detector/vue-mess-detector/dist/vue-mess-detector.es.js:1487:5)
at file:///home/runner/work/vue-mess-detector/vue-mess-detector/node_modules/yargs/build/lib/command.js:206:54
at maybeAsyncResult (file:///home/runner/work/vue-mess-detector/vue-mess-detector/node_modules/yargs/build/lib/utils/maybe-async-result.js:9:15)
at CommandInstance.handleValidationAndGetResult (file:///home/runner/work/vue-mess-detector/vue-mess-detector/node_modules/yargs/build/lib/command.js:205:25)
at CommandInstance.applyMiddlewareAndGetResult (file:///home/runner/work/vue-mess-detector/vue-mess-detector/node_modules/yargs/build/lib/command.js:245:20)
at CommandInstance.runCommand (file:///home/runner/work/vue-mess-detector/vue-mess-detector/node_modules/yargs/build/lib/command.js:128:20)
at [runYargsParserAndExecuteCommands] (file:///home/runner/work/vue-mess-detector/vue-mess-detector/node_modules/yargs/build/lib/yargs-factory.js:1386:105) {
errno: -2,
code: 'ENOENT',
syscall: 'scandir',
path: './test/'
}
Node.js v20.15.1
error Command failed with exit code 1.
$ dist/cli.js analyze ./test/ --ignore=vue-strong,rrd
Analyzing Vue files in ./test/
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
❯ Object.readdirSync node:fs:1507:26
❯ Ft dist/vue-mess-detector.es.js:1422:16
❯ Do dist/vue-mess-detector.es.js:1431:41
❯ Object.handler dist/vue-mess-detector.es.js:1487:5
❯ node_modules/yargs/build/lib/command.js:206:54
❯ maybeAsyncResult node_modules/yargs/build/lib/utils/maybe-async-result.js:9:15
❯ CommandInstance.handleValidationAndGetResult node_modules/yargs/build/lib/command.js:205:25
❯ CommandInstance.applyMiddlewareAndGetResult node_modules/yargs/build/lib/command.js:245:20
❯ CommandInstance.runCommand node_modules/yargs/build/lib/command.js:128:20
❯ getFinalError node_modules/execa/lib/return/final-error.js:6:9
❯ makeError node_modules/execa/lib/return/result.js:108:16
❯ getAsyncResult node_modules/execa/lib/methods/main-async.js:167:4
❯ handlePromise node_modules/execa/lib/methods/main-async.js:150:17
❯ src/index.test.ts:15:32
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { shortMessage: 'Command failed with exit code 1: yarn analyze ./test/ \'--ignore=vue-strong,rrd\'', command: 'yarn analyze ./test/ --ignore=vue-strong,rrd', escapedCommand: 'yarn analyze ./test/ \'--ignore=vue-strong,rrd\'', cwd: '/home/runner/work/vue-mess-detector/vue-mess-detector', durationMs: 334.919684, failed: true, timedOut: false, isCanceled: false, isGracefullyCanceled: false, isTerminated: false, isMaxBuffer: false, isForcefullyTerminated: false, exitCode: 1, stdout: '$ dist/cli.js analyze ./test/ --ignore=vue-strong,rrd\n\n\n\u001b[44mAnalyzing Vue files in ./test/\u001b[0m\ninfo Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.', stderr: 'node:fs:1507\n const result = binding.readdir(\n ^\n\nError: ENOENT: no such file or directory, scandir \'./test/\'\n at Object.readdirSync (node:fs:1507:26)\n at Ft (file:///home/runner/work/vue-mess-detector/vue-mess-detector/dist/vue-mess-detector.es.js:1422:16)\n at Do (file:///home/runner/work/vue-mess-detector/vue-mess-detector/dist/vue-mess-detector.es.js:1431:41)\n at Object.handler (file:///home/runner/work/vue-mess-detector/vue-mess-detector/dist/vue-mess-detector.es.js:1487:5)\n at file:///home/runner/work/vue-mess-detector/vue-mess-detector/node_modules/yargs/build/lib/command.js:206:54\n at maybeAsyncResult (file://
|
test
Process completed with exit code 1.
|
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
test
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|