JSLint error on Side effect import
erosman opened this issue · 1 comments
erosman commented
Describe the bug
JSLint error on Side effect import:
import './mod.js';
JSLint - [JSLint was unable to finish] Expected '{' and instead saw './mod.js'.
Jslint edition:
vscode-jslint v2023.4.29
Expected behavior
No error
kaizhu256 commented
- added grammar to recognize side-effect import-statement and not throw a syntax-error
- currently still raise warning but can be suppressed now:
import './mod.js'; //jslint-ignore-line