Open
Description
Before You File a Proposal Please Confirm You Have Done The Following...
- I have searched for related issues and found none that match my proposal.
- I have searched the current rule list and found no rules that match my proposal.
- I have read the FAQ and my problem is not listed.
Relevant Package
type-utils
My proposal is suitable for this project
- I believe my proposal would be useful to the broader TypeScript community (meaning it is not a niche proposal).
Description
A few lines of context -
- An old rfc - RFC: Common format to specify a type or value as a rule option #6017 (comment)
- StyleShit's comment on a PR on which I'm working - feat(eslint-plugin): [no-floating-promises] add an 'allowForKnownSafePromises' option #8502 (comment)
Steps to reproduce -
- go to https://stackblitz.com/edit/stackblitz-starters-tnrbtd?file=src%2Findex.ts
- run
npx eslint src/index.ts
in terminal - check index.ts, line 4
Is typescript-eslint open to include a config option like {from: "package", name: "Foo", package: "data:text/javascript, export class Foo {};"}
, or with the other URL schemes(like file:
), in the eslint config file ?
There are 3 URL schemes in total - node:
, file:
& data:
.
I think node:
will be required to solve #8404. I just want to know about the other 2.
Additional Info
No response