summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKid <44045911+kidonng@users.noreply.github.com>2022-03-13 06:09:16 +0800
committerGitHub <noreply@github.com>2022-03-12 23:09:16 +0100
commita10e24b2052047d431b6a44b0a202f605c39bc96 (patch)
tree0efb8a1d06561020ace3b0ac80a8814b0e194160 /src
parent547e55f047d16bda995bab88d76438787a8450a6 (diff)
feat(nodejs): check for `.mts` and `.cts` files (#3734)
* feat(nodejs): check for `.mts` and `.cts` files * Hmm * Tests * Update docs * Update table * Align * Remove tests * 🤷 * 🤷🤷
Diffstat (limited to 'src')
-rw-r--r--src/configs/nodejs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configs/nodejs.rs b/src/configs/nodejs.rs
index 6d4a59112..a026a4598 100644
--- a/src/configs/nodejs.rs
+++ b/src/configs/nodejs.rs
@@ -25,7 +25,7 @@ impl<'a> Default for NodejsConfig<'a> {
style: "bold green",
disabled: false,
not_capable_style: "bold red",
- detect_extensions: vec!["js", "mjs", "cjs", "ts"],
+ detect_extensions: vec!["js", "mjs", "cjs", "ts", "mts", "cts"],
detect_files: vec!["package.json", ".node-version", ".nvmrc"],
detect_folders: vec!["node_modules"],
}