Skip to content

Commit

Permalink
feat: support .mjs and .cjs javascript file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerAberbach committed Apr 26, 2020
1 parent 68a83ed commit 9f75d2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func licenseHeader(path string, tmpl *template.Template, data *copyrightData) ([
return nil, nil
case ".c", ".h":
lic, err = prefix(tmpl, data, "/*", " * ", " */")
case ".js", ".jsx", ".tsx", ".css", ".tf", ".ts":
case ".js", ".mjs", ".cjs", ".jsx", ".tsx", ".css", ".tf", ".ts":
lic, err = prefix(tmpl, data, "/**", " * ", " */")
case ".cc", ".cpp", ".cs", ".go", ".hh", ".hpp", ".java", ".m", ".mm", ".proto", ".rs", ".scala", ".swift", ".dart", ".groovy", ".kt", ".kts":
lic, err = prefix(tmpl, data, "", "// ", "")
Expand Down

0 comments on commit 9f75d2b

Please sign in to comment.