fxbois / web-mode

web template editing mode for emacs
https://web-mode.org
GNU General Public License v3.0
1.63k stars 262 forks source link

Recognize new TypeScript file extensions #1260

Closed hanazuki closed 1 year ago

hanazuki commented 1 year ago

Hi.

TypeScript 4.7 supports .cts and .mts file extensions as counterparts of .cjs and .mjs.

This patch modifies web-mode-content-types so that the files with those new extensions are handled as TypeScript.

ref: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-7.html#new-file-extensions