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

no-mutation and HTML DOM #49

Open
johnridesabike opened this issue May 16, 2019 · 0 comments
Open

no-mutation and HTML DOM #49

johnridesabike opened this issue May 16, 2019 · 0 comments

Comments

@johnridesabike
Copy link

Currently, no-mutation will flag code like this:

document.title = "A new title";

I propose adding an option, similar to the commonjs option, which allows DOM mutations. Since there’s no non-mutating way to set those DOM properties, the only error-free way of doing it now seems to be to manually add exceptions in .eslintrc.

@johnridesabike johnridesabike changed the title no-mutation and HTML dom no-mutation and HTML DOM May 16, 2019
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