Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upConsider adding eslint-plugin-security #1086
Comments
This comment has been minimized.
This comment has been minimized.
|
Yes, this has been on my list of things to look at. Will consider for standard 12. |
feross
added this to the
standard v12 milestone
Mar 8, 2018
This comment has been minimized.
This comment has been minimized.
alasdairhurst
commented
Mar 23, 2018
|
Given that standard is supposed to be no-config, having plugin security could be a pain out the box. There's a lot of stuff in it warning on the use of child_process, buffers and the like which are not bad, they can just be used in bad ways if you're not careful. most of the time will just get eslint ignored resulting in comment clutter. |
This comment has been minimized.
This comment has been minimized.
|
Yeah, we should evaluate each individual rule and decide which to turn on |
This comment has been minimized.
This comment has been minimized.
stale
bot
commented
Jun 21, 2018
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
stale
bot
added
the
stale
label
Jun 21, 2018
stale
bot
closed this
Jun 28, 2018
lock
bot
locked as resolved and limited conversation to collaborators
Sep 26, 2018
standard
unlocked this conversation
Aug 4, 2019
feross
added
accepted
enhancement
and removed
stale
labels
Aug 4, 2019
feross
reopened this
Aug 4, 2019
feross
modified the milestones:
standard v12,
standard v14
Aug 4, 2019
This comment has been minimized.
This comment has been minimized.
|
I just took a closer look at the rules available in Of all the rules, the only three that had a low enough error rate that we could plausibly enable them are:
Could be useful but it's specific to one template language. Worth adding a whole new ESLint plugin to get this rule?
Again, could be useful in some codebases, but specific to express and two middlewares.
Detects comparisons of a variable named Overall, not too concerned about not getting these rules, so I'm going to close this issue. Feedback on this decision welcome. |
LinusU commentedMar 8, 2018
This seems to catch quite a few security related issues: https://github.com/nodesecurity/eslint-plugin-security
also see #1085