Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(eslint-plugin): add rule [strict-void-return]#23259

feat(eslint-plugin): add rule [strict-void-return]

feat(eslint-plugin): add rule [strict-void-return] #23259

Triggered via pull requestJuly 18, 2025 22:21
StatusFailure
Total duration 8m 27s
Artifacts 12

ci.yml

on: pull_request
Checkout and Install
29s
Checkout and Install
Build All Packages
58s
Build All Packages
Matrix: Lint without build
Matrix: Run Unit Tests
Matrix: Lint with build
Run integration tests on primary Node.js version
44s
Run integration tests on primary Node.js version
Generate Configs
36s
Generate Configs
Matrix: Run Unit Tests with Project Service
Upload Codecov Coverage
0s
Upload Codecov Coverage
Publish the latest code as a canary version
0s
Publish the latest code as a canary version
Fit to window
Zoom out
Zoom in

Annotations

8 errors
Run Unit Tests with Project Service (eslint-plugin)
Process completed with exit code 1.
tests/docs.test.mts > Validating rule docs > strict-void-return.mdx > code examples ESLint output: packages/eslint-plugin/tests/docs.test.mts#L551
Error: Snapshot `Validating rule docs > strict-void-return.mdx > code examples ESLint output 1` mismatched- Expected+ Received@@ -69,73 +69,10 @@ ['Kazik', 'Zenek'].forEach(name => console.log(`Hello, ${name}!`)); Incorrect- declare function takesCallback(cb: () => void): void;- declare function TakesCallback(props: { cb: () => void }): string;- declare let callback: () => void;- declare let returnsCallback: () => () => void;- declare let callbackObj: Record<string, () => void>;- declare let callbackArr: (() => void)[];-- takesCallback(() => 'Hello');- ~~~~~~~ Value returned in a context where a void return is expected.- <TakesCallback cb={() => 'Hello'} />;- ~~~~~~~ Value returned in a context where a void return is expected.- callback = () => 'Hello';- ~~~~~~~ Value returned in a context where a void return is expected.- returnsCallback = () => {- return () => 'Hello';- ~~~~~~~ Value returned in a context where a void return is expected.- };- callbackObj = {- hello: () => 'Hello',- ~~~~~~~ Value returned in a context where a void return is expected.- };- callbackArr = [() => 'Hello'];- ~~~~~~~ Value returned in a context where a void return is expected.-- Correct-- declare function takesCallback(cb: () => void): void;- declare function TakesCallback(props: { cb: () => void }): string;- declare let callback: () => void;- declare let returnsCallback: () => () => void;- declare let callbackObj: Record<string, () => void>;- declare let callbackArr: (() => void)[];-- takesCallback(() => console.log('Hello'));- <TakesCallback cb={() => console.log('Hello')} />;- callback = () => console.log('Hello');- returnsCallback = () => {- return () => console.log('Hello');- };- callbackObj = {- hello: () => console.log('Hello'),- };- callbackArr = [() => console.log('Hello')];-- Incorrect-- /// <reference lib="dom" />-- document.addEventListener('click', () => {- return 'Clicked';- ~~~~~~ Value returned in a context where a void return is expected.- });-- Correct-- /// <reference lib="dom" />-- document.addEventListener('click', () => {- console.log('Clicked');- });-- Incorrect- class Foo { cb() { console.log('foo'); } } ❯ tests/docs.test.mts:551:9
Run Unit Tests (ubuntu-latest, 18, eslint-plugin)
Process completed with exit code 1.
tests/docs.test.mts > Validating rule docs > strict-void-return.mdx > code examples ESLint output: packages/eslint-plugin/tests/docs.test.mts#L551
Error: Snapshot `Validating rule docs > strict-void-return.mdx > code examples ESLint output 1` mismatched- Expected+ Received@@ -69,73 +69,10 @@ ['Kazik', 'Zenek'].forEach(name => console.log(`Hello, ${name}!`)); Incorrect- declare function takesCallback(cb: () => void): void;- declare function TakesCallback(props: { cb: () => void }): string;- declare let callback: () => void;- declare let returnsCallback: () => () => void;- declare let callbackObj: Record<string, () => void>;- declare let callbackArr: (() => void)[];-- takesCallback(() => 'Hello');- ~~~~~~~ Value returned in a context where a void return is expected.- <TakesCallback cb={() => 'Hello'} />;- ~~~~~~~ Value returned in a context where a void return is expected.- callback = () => 'Hello';- ~~~~~~~ Value returned in a context where a void return is expected.- returnsCallback = () => {- return () => 'Hello';- ~~~~~~~ Value returned in a context where a void return is expected.- };- callbackObj = {- hello: () => 'Hello',- ~~~~~~~ Value returned in a context where a void return is expected.- };- callbackArr = [() => 'Hello'];- ~~~~~~~ Value returned in a context where a void return is expected.-- Correct-- declare function takesCallback(cb: () => void): void;- declare function TakesCallback(props: { cb: () => void }): string;- declare let callback: () => void;- declare let returnsCallback: () => () => void;- declare let callbackObj: Record<string, () => void>;- declare let callbackArr: (() => void)[];-- takesCallback(() => console.log('Hello'));- <TakesCallback cb={() => console.log('Hello')} />;- callback = () => console.log('Hello');- returnsCallback = () => {- return () => console.log('Hello');- };- callbackObj = {- hello: () => console.log('Hello'),- };- callbackArr = [() => console.log('Hello')];-- Incorrect-- /// <reference lib="dom" />-- document.addEventListener('click', () => {- return 'Clicked';- ~~~~~~ Value returned in a context where a void return is expected.- });-- Correct-- /// <reference lib="dom" />-- document.addEventListener('click', () => {- console.log('Clicked');- });-- Incorrect- class Foo { cb() { console.log('foo'); } } ❯ tests/docs.test.mts:551:9
Run Unit Tests (windows-latest, 20, eslint-plugin)
The operation was canceled.
Run Unit Tests (windows-latest, 20, eslint-plugin)
The strategy configuration was canceled because "unit_tests.ubuntu-latest_18_eslint-p" failed
Run Unit Tests (ubuntu-latest, 20, eslint-plugin)
The operation was canceled.
Run Unit Tests (ubuntu-latest, 20, eslint-plugin)
The strategy configuration was canceled because "unit_tests.ubuntu-latest_18_eslint-p" failed

Artifacts

Produced during runtime
NameSizeDigest
ast-spec-coverage
2.54 KB
sha256:4d185e5ccffadba2683f8b71e2f023af1af8ded815915a0e02c8bfb2ae87d61e
eslint-plugin-internal-coverage
4.34 KB
sha256:375045f7114613bdcf4d2adf43b1a1c3644c91a26d753023df1b818e93848610
parser-coverage
805 Bytes
sha256:ed3387579988430c5830fe6ea491034ebb7882dd719b7005e3f71f78e7b62cdf
project-service-coverage
976 Bytes
sha256:781ed7be178d8123033a2e8c5f88b518a6a4e1c92dccdb6f15c9dbbb4e6dfc02
rule-tester-coverage
8.65 KB
sha256:0f104ea7309a3f518214ac289f23cc95d8c7da6a0dd8a411e29df2faed9a6b28
scope-manager-coverage
20 KB
sha256:4b0f8d90f6e9dd7339b11b6a939fdbf9bfbff7aac3c87a56cb0b291ab9c248e2
tsconfig-utils-coverage
623 Bytes
sha256:9e027f24294924c9ebd973509567eb8bd8d078082af6d4e7b4367e3cabf43be1
type-utils-coverage
5.52 KB
sha256:1e932454886cb2b7e391149364bd900892bd4cdc07eaef91007ec74a75efb75d
typescript-eslint-coverage
1.09 KB
sha256:8e6340d3d9d637ddbece9ea8f3cbcfe598d87991aeb0452cb57ae12bcba95d3e
typescript-estree-coverage
25.2 KB
sha256:92be97af23f67b1aa4bca93b3604a90d1db400fae45f5cd01fb3530677529f88
utils-coverage
2.08 KB
sha256:52efdf1bdb8cc2ba824792a13f0df12092b63144314c9f30860bf1addd7f01c4
visitor-keys-coverage
525 Bytes
sha256:b9ee94cbfbd88aaabf233c2e22484065eda9f9d99a69b7100eee6e1d4b9c195b

[8]ページ先頭

©2009-2025 Movatter.jp