From 9506950f09800d56df557ce958d8f2806e6a480d Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sun, 10 Nov 2024 15:45:34 -0800 Subject: [PATCH] lint: Further recognize more JavaScript file extensions. Signed-off-by: Anders Kaseorg --- .editorconfig | 2 +- .eslintrc.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index f0c3faa747..53f0dc510a 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 18621ae5d5..da70e63123 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",