Skip to content

[eslint-config] [breaking] Enable react/no-is-mounted rule#635

Merged
ljharb merged 1 commit into
airbnb:masterfrom
lencioni:no-is-mounted
Dec 22, 2015
Merged

[eslint-config] [breaking] Enable react/no-is-mounted rule#635
ljharb merged 1 commit into
airbnb:masterfrom
lencioni:no-is-mounted

Conversation

@lencioni
Copy link
Copy Markdown
Contributor

isMounted is an anti-pattern 0, is not available when using ES6
classes, and is on its way to being officially deprecated.
eslint-plugin-react recently added the react/no-is-mounted rule in
3.12.0 that prevents its use.

Finishes #633

Comment thread react/README.md Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/It's/Its

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops! What a silly mistake. I'll push a new version shortly.

@ljharb
Copy link
Copy Markdown
Collaborator

ljharb commented Dec 22, 2015

just the one grammar tweak rebased in, and this is good to go. thanks!

isMounted is an anti-pattern [0], is not available when using ES6
classes, and is on its way to being officially deprecated.
eslint-plugin-react recently added the react/no-is-mounted rule in
3.12.0 that prevents its use.

[0]: https://facebook.github.io/react/blog/2015/12/16/ismounted-antipattern.html

Finishes airbnb#633
@lencioni
Copy link
Copy Markdown
Contributor Author

New version is ready!

ljharb added a commit that referenced this pull request Dec 22, 2015
[eslint-config] [breaking] Enable react/no-is-mounted rule
@ljharb ljharb merged commit eea8efe into airbnb:master Dec 22, 2015
@ljharb ljharb changed the title [eslint-config] [minor] Enable react/no-is-mounted rule [eslint-config] [breaking] Enable react/no-is-mounted rule Dec 22, 2015
@ljharb
Copy link
Copy Markdown
Collaborator

ljharb commented Dec 22, 2015

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants