Open
Description
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]) => {});