Common format to specify a type or value as a rule option? #16540
Replies: 1 comment 7 replies
-
@SlickNet - at mentioning you as suggested on Twitter. Is this something you want to weigh in on? If not, that works for me; we can go with the current proposal. I just don't want to move forward with something and later realize it doesn't play well with something in ESLint core. 🙂 |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Forking discussion from typescript-eslint/typescript-eslint#5271 here. There are quite a few times when users have a real need to change or disable a rule for specifically some package exports:
@typescript-eslint/no-floating-promises
should Ignore node 18's built-in test function typescript-eslint/typescript-eslint#5231: At least the new built-innode:test
runner intentionally returns ignorable Promises from itstest()
method that can be ignored by the ruleallowedNames
option from@typescript-eslint/explicit-module-boundary-types
typesToIgnore
option from@typescript-eslint/no-unnecessary-type-assertion
allowedPromiseNames
option from@typescript-eslint/promise-function-async
I'm not as familiar with the core ESLint rulesets, and didn't see any rules with relevant options in the first few dozen on eslint.org/docs/latest/rules. Nor did I find much about 'name' options in the issue tracker. So I don't know if this type of format is only applicable on TypeScript-land. Has there been much of a demand for it in ESLint core?
Either way - is this something the ESLint team wants to have input / collaboration on?
Edit: The current proposal is now described in the OP at typescript-eslint/typescript-eslint#6017. Copying its summary here...
Beta Was this translation helpful? Give feedback.
All reactions