Skip to content

feat: add configuration for derived-has-same-inputs-outputs #876

Open
@Azuriru

Description

@Azuriru

Motivation

I'd like to suggest a configuration option for whether or not the naming convention should include the $ symbol since it does avoid confusion, but it's personally a bit redundant in my opinion, it does help discern the store from the parameter though but it's just not my cup of tea

Description

Configuration option that enforce stores being passed to the function as parameters, but not enforce adding $

{
    "symbol": "always" | "never" | "ignore" // default "always"
}

Examples

/* Never */
/* ✓ GOOD */
derived(a, (a) => {});
derived(a, (a, set) => {});

/* Always (current, default) */
/* ✓ GOOD */
derived(a, ($a) => {});
derived(a, ($a, set) => {});

/* Ignore */
/* ✓ GOOD */
derived(a, ($a) => {});
derived(a, (a, set) => {});

/* ✗ BAD */
derived(a, (b) => {});
derived(a, (b, set) => {});
derived([a, b], ([one, two]) => {});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions