🌐 AI搜索 & 代理 主页
Skip to content

feat: add vue/no-undef-directives rule #2340

feat: add vue/no-undef-directives rule

feat: add vue/no-undef-directives rule #2340

Triggered via pull request December 12, 2025 13:36
Status Failure
Total duration 2m 27s
Artifacts

CI.yml

on: pull_request
Lint
49s
Lint
Test with ESLint v8
2m 24s
Test with ESLint v8
Test without ESLint Stylistic
2m 10s
Test without ESLint Stylistic
Test with typescript-eslint v7
2m 23s
Test with typescript-eslint v7
Matrix: Test with old ESLint Stylistic
Matrix: Test
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 1 warning
Test (lts/*)
Process completed with exit code 1.
tests/lib/utils/ts-utils/index/get-component-emits.js > getComponentEmitsFromTypeDefineTypes > should return expected props with :<script setup lang="ts"> import { Emits } from './test' defineEmits<Emits>() </script>: tests/lib/utils/ts-utils/index/get-component-emits.js#L120
AssertionError: [{"type":"unknown","name":null}] === [{"type":"infer-type","name":"a"},{"type":"infer-type","name":"b"},{"type":"infer-type","name":"c"}] + actual - expected [ { + name: null, + type: 'unknown' - name: 'a', - type: 'infer-type' }, - { - name: 'b', - type: 'infer-type' - }, - { - name: 'c', - type: 'infer-type' - } ] - Expected + Received [ { - "name": "a", - "type": "infer-type", - }, - { - "name": "b", - "type": "infer-type", - }, - { - "name": "c", - "type": "infer-type", + "name": null, + "type": "unknown", }, ] ❯ tests/lib/utils/ts-utils/index/get-component-emits.js:120:14
Test (21)
The strategy configuration was canceled because "test.lts__" failed
Test (21)
The operation was canceled.
Test (20)
The strategy configuration was canceled because "test.lts__" failed
Test (20)
The operation was canceled.
Test (18)
The strategy configuration was canceled because "test.lts__" failed
Test (18)
The operation was canceled.
Lint: eslint.config.mjs#L82
Unexpected 'todo' comment: 'TODO: enable when all rules have...'