You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Ensure the use of 'use strict'; on all files
const noStrictFiles = newJsFiles.filter(filepath => {
const content = fs.readFileSync(filepath).toString();
return !includes(content, 'use strict');
});
Basically ES modules are strict mode by default, so the check should look for use of "import"/"export" to determine if flagging is required.
The text was updated successfully, but these errors were encountered:
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
The relevant code in dangerfile:
Basically ES modules are strict mode by default, so the check should look for use of "import"/"export" to determine if flagging is required.
The text was updated successfully, but these errors were encountered: