Support base path in enforce-id
#4086
remcohaszing
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ESLint rule
@formatjs/enforce-id
supports interpolation. It’s undocumented, but all options can be found ininterpolate-name.ts
.I would like to use the
path
option. However, this can’t really be used, as it contains the full path on the file system of whoever is running ESLint. I propose to add a new optionbasePath
. Thepath
variable will be calculated relative from there. Also it should use a consistent path separator, probably/
.Beta Was this translation helpful? Give feedback.
All reactions