You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that remeda got added, yay for fp!
It does bring up something I've been thinking about though, which is that there're a lot of options. By installing sheriff, I install a bunch of plugins for react, astro, jest (and sometimes vitest), etc. I don't mind that much, but it's still a lot. It'd be cool if there was an api kinda like this, I guess:
Alternatively, presets were just normal configs, you could do this, though I like the above idea better as the astro preset could be given access the files key, etc, without extra work.
import{sheriff}from"eslint-config-sheriff";import{sheriffAstro}from"@sherifforg/astro";import{defineFlatConfig}from"eslint-define-config";exportdefaultdefineFlatConfig([
...sheriff({files: ["packages/foo/*.{ts,tsx}"],ignores: ["**/*.d.ts"],}),
...sheriffAstro(),// Probably needs to passed sheriffOptions?]);
If this is something you'd be interested in, I'd be happy to work on it, as always.
I can't guarantee I'd find time soon, but it's not super important at this point.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello again! How're you doing?
I noticed that remeda got added, yay for fp!
It does bring up something I've been thinking about though, which is that there're a lot of options. By installing sheriff, I install a bunch of plugins for react, astro, jest (and sometimes vitest), etc. I don't mind that much, but it's still a lot. It'd be cool if there was an api kinda like this, I guess:
Alternatively, presets were just normal configs, you could do this, though I like the above idea better as the astro preset could be given access the files key, etc, without extra work.
If this is something you'd be interested in, I'd be happy to work on it, as always.
I can't guarantee I'd find time soon, but it's not super important at this point.
Beta Was this translation helpful? Give feedback.
All reactions