Skip to content

Commit 6a6198e

Browse files
authored
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
1 parent fa7bd76 commit 6a6198e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
logger = logging.getLogger('SublimeLinter.plugin.eslint')
3737

3838

39-
STANDARD_SELECTOR = 'source.js, source.jsx'
39+
STANDARD_SELECTOR = 'source.js, source.jsx, source.mjs, source.cjs'
4040
PLUGINS = {
4141
'eslint-plugin-html': 'text.html',
4242
'eslint-plugin-json': 'source.json',

0 commit comments

Comments
 (0)