Disable @typescript-eslint/no-use-before-define for Enums by default on "flat/react" config. #28899
eliasmartinez93
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I started having some eslint warnings using enums before declaration. I have looked at the nx source code and I see we have the rule for react-typescript (I'm using flat/react config): @typescript-eslint/no-use-before-define defined
packages/eslint-plugin/src/flat-configs/react-typescript.ts
It was needed to differentiate between those types and enums as it is explained here:
typescript-eslint/typescript-eslint#1235
https://typescript-eslint.io/rules/no-use-before-define/
My suggestion is to set this as false too, or is there any reason why we don't have it?
packages/eslint-plugin/src/flat-configs/react-typescript.ts
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions