You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i like the canonical/filename-match-exported rule, but i also use remix (react router) with file-convention based routing, and so the filenames for the files in the routes folder are all based on the URL paths they are associated with (e.g. app/routes/concerts.$city.tsx, app/routes/($lang).categories.tsx) and do not translate to default export variable names.
i suppose there could be some sort of route-file transform or something that cleverly parses the route filenames and deterministically generates the corresponding default export variable name (maybe ConcertsCity for the first example, Categories for the second), but that seems quite tricky and very usecase specific. so i was thinking a simple solution that would allow me to still enable this rule would be to allow ignoring entire directories, so then i could use ignoredDirectories: ['app/routes'] as the config for the rule and still get value from it.
thanks for your consideration and for this great plugin!
The text was updated successfully, but these errors were encountered:
i like the
canonical/filename-match-exported
rule, but i also use remix (react router) with file-convention based routing, and so the filenames for the files in theroutes
folder are all based on the URL paths they are associated with (e.g.app/routes/concerts.$city.tsx
,app/routes/($lang).categories.tsx
) and do not translate to default export variable names.i suppose there could be some sort of
route-file
transform or something that cleverly parses the route filenames and deterministically generates the corresponding default export variable name (maybeConcertsCity
for the first example,Categories
for the second), but that seems quite tricky and very usecase specific. so i was thinking a simple solution that would allow me to still enable this rule would be to allow ignoring entire directories, so then i could useignoredDirectories: ['app/routes']
as the config for the rule and still get value from it.thanks for your consideration and for this great plugin!
The text was updated successfully, but these errors were encountered: