From 6a6198ee73df72c27c8563ac6fcd2dbc657a1ba1 Mon Sep 17 00:00:00 2001 From: J Rob Gant Date: Wed, 26 Feb 2025 13:56:38 -0500 Subject: [PATCH] Add ESM and CommonJS sources to Standard Selector I think that `.cjs` and `.mjs` are much more common now and should be included in the standard selector --- linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linter.py b/linter.py index 7faae6c..f304889 100644 --- a/linter.py +++ b/linter.py @@ -36,7 +36,7 @@ logger = logging.getLogger('SublimeLinter.plugin.eslint') -STANDARD_SELECTOR = 'source.js, source.jsx' +STANDARD_SELECTOR = 'source.js, source.jsx, source.mjs, source.cjs' PLUGINS = { 'eslint-plugin-html': 'text.html', 'eslint-plugin-json': 'source.json',