Replies: 3 comments 9 replies
-
Hey @dylang! That being said, i think i should better explore the difference in performance about both approaches and inform the user about it in the docs.
Well, the rationale behind the currently recommended approach is: every package is supposed to have different needs and so configuring Sheriff independently in every package is actually a benefit intended by design. So, i'll keep exploring this topic and i'll update this discussion accordingly. The backlog is long though, so it might take a while. // eslint.config.js
import sheriff from "eslint-config-sheriff";
import { defineFlatConfig } from "eslint-define-config";
import { myUniversalConfigSlice } from "@constants"
const sheriffOptions = {
react: false,
next: false,
lodash: false,
playwright: false,
jest: false,
vitest: false,
};
export default defineFlatConfig([...sheriff(sheriffOptions), myUniversalConfigSlice]); |
Beta Was this translation helpful? Give feedback.
-
I've found the
|
Beta Was this translation helpful? Give feedback.
-
Relevant discussion, we should keep tracking: eslint/eslint#16960 |
Beta Was this translation helpful? Give feedback.
-
I have a monorepo with hundreds of packages. Should we have hundreds of eslint configs? And if we need an override for, say, a React rule, we should repeat that override hundreds of times?
Great looking project, thanks for putting so much effort into the code and documentation.
Beta Was this translation helpful? Give feedback.
All reactions