Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider allow list for assignment operators #42

Closed
jonathanKingston opened this issue Mar 21, 2017 · 0 comments
Closed

Consider allow list for assignment operators #42

jonathanKingston opened this issue Mar 21, 2017 · 0 comments

Comments

@jonathanKingston
Copy link
Collaborator

Can we consider making the expression operators use an allow list of permitted expressions rather than a block list of checked operators. Such that we would have allowedExpressions = ["-=", "**=", "*=", "/="]; or similar? So if fancy new operator comes along that adds an exploit we don't need to remember to fix out code in future etc.

jonathanKingston added a commit to jonathanKingston/eslint-plugin-no-unsanitized that referenced this issue Mar 21, 2017
jonathanKingston added a commit to jonathanKingston/eslint-plugin-no-unsanitized that referenced this issue Mar 22, 2017
jonathanKingston added a commit to jonathanKingston/eslint-plugin-no-unsanitized that referenced this issue Mar 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant