Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Azuriru opened this issue Oct 17, 2024 · 0 comments
Open

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

Azuriru opened this issue Oct 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Azuriru
Copy link

Azuriru commented Oct 17, 2024

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]) => {});
@Azuriru Azuriru added the enhancement New feature or request label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant