Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

lint: Further recognize more JavaScript file extensions.

Anders Kaseorg9506950f0980
diff --git a/.editorconfig b/.editorconfig
index f0c3faa7477..53f0dc510ae 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -12,7 +12,7 @@ trim_trailing_whitespace = true
binary_next_line = true
switch_case_indent = true
-[{*.{js,json,ts},check-openapi}]
+[{*.{cjs,cts,js,json,mjs,mts,ts},check-openapi}]
max_line_length = 100
[*.{py,pyi}]
diff --git a/.eslintrc.js b/.eslintrc.js
index 18621ae5d55..da70e63123e 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -155,7 +155,7 @@ module.exports = {
},
},
{
- files: ["**/*.ts"],
+ files: ["**/*.cts", "**/*.mts", "**/*.ts"],
excludedFiles: "help-beta/**",
extends: [
"plugin:@typescript-eslint/strict-type-checked",