lint: Further recognize more JavaScript file extensions.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-11-10 15:45:34 -08:00 committed by Anders Kaseorg
parent ff70ab441d
commit 9506950f09
2 changed files with 2 additions and 2 deletions

View File

@ -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}]

View File

@ -155,7 +155,7 @@ module.exports = {
},
},
{
files: ["**/*.ts"],
files: ["**/*.cts", "**/*.mts", "**/*.ts"],
excludedFiles: "help-beta/**",
extends: [
"plugin:@typescript-eslint/strict-type-checked",