Per discussion, the names of the content scripts should be changed from csN.ts to short-name.ts for clarity.
short-name should be the trailing name after the directory, e.g., go-back-on-save.ts stored in src/contentScripts/tdx/ticket/edit.
Historical note: csN.ts was previously used as the filename to avoid the assumption that creating the file automatically registered the content script (this must be done in src/rules/rules.ts) as well as to avoid confusion when one rule has several content scripts associated with it. However, rules of that nature typically have multiple content scripts in different directories, so this nomenclature should work.
Could potentially remove the triple-slash directive enforcement tests now, but it's probably safer to keep them in play.
Per discussion, the names of the content scripts should be changed from
csN.ts
toshort-name.ts
for clarity.short-name
should be the trailing name after the directory, e.g.,go-back-on-save.ts
stored insrc/contentScripts/tdx/ticket/edit
.Historical note:
csN.ts
was previously used as the filename to avoid the assumption that creating the file automatically registered the content script (this must be done insrc/rules/rules.ts
) as well as to avoid confusion when one rule has several content scripts associated with it. However, rules of that nature typically have multiple content scripts in different directories, so this nomenclature should work.Could potentially remove the triple-slash directive enforcement tests now, but it's probably safer to keep them in play.