console.log
causes a "EPERM: operation not permitted, write" in Atom editor
#783
Labels
console.log
causes a "EPERM: operation not permitted, write" in Atom editor
#783
The bug has since been reported in several places but the cause is using
console.log
unsafely in theeslint-plugin-react
.Here's the exception that pops up in Atom:
Here's one of the faulty lines:
https://github.com/yannickcr/eslint-plugin-react/blob/v3.16.1/lib/rules/jsx-quotes.js#L52
There are more occurences of this pattern:
https://github.com/yannickcr/eslint-plugin-react/blob/e84af68a3bf48c9a34f14e73a8b4dc1ed7488bab/lib/rules/require-extension.js#L103
https://github.com/yannickcr/eslint-plugin-react/search?utf8=%E2%9C%93&q=console.log&type=Code
Please consider wrapping
console.log
in atry..catch
or removing it entirely, because the eslint plugin is supposed to run in a multitude of environments without errors, but implying a valid console is an unreasonably strict requirement.The text was updated successfully, but these errors were encountered: