solidjs-community / eslint-plugin-solid

Solid-specific linting rules for ESLint.
MIT License
209 stars 24 forks source link

badUnnamedDerivedSignal error incorrectly triggered for jsx function blocks #63

Closed russelldavis closed 1 year ago

russelldavis commented 1 year ago

Describe the bug See title

To Reproduce

const TestComponent = () => {
    const [foo, setFoo] = createSignal(0);
    return <div>{() => {
        console.log("hello");
        return foo();
    }}</div>;
};

Expected behavior No error should be generated, because solid runs these functions in a tracked scope.

Environment (please complete the following information):

Additional context