getify / eslint-plugin-proper-arrows

ESLint rules to ensure proper arrow function definitions
MIT License
305 stars 14 forks source link

Add `id` to the default allowed list of short params #23

Closed davidwkeith closed 4 years ago

davidwkeith commented 4 years ago

Reasoning:

getify commented 4 years ago

We're talking about the the "allowed" mode of the "params" rule, right? The default is an empty list, so I don't think we'd do anything to make that non-empty.

But maybe you're instead referring to the included "getify" config preset? https://github.com/getify/eslint-plugin-proper-arrows/blob/master/lib/index.js#L8

It's a reasonable suggestion that id is a good default param name, but it doesn't happen to be something I use.

But I always expected that with community input, we'd define more config presets. Seems like we could use one here? What would it be called, and what would the presets be?

davidwkeith commented 4 years ago

Correct. I only mentioned it because it is an example in the readme that fails…

getify commented 4 years ago

which example?

davidwkeith commented 4 years ago

the Where rule: https://github.com/getify/eslint-plugin-proper-arrows#rule-where

getify commented 4 years ago

Closing for now.