Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add eslint & prettier, and re-format JS#17026

Merged
timhoffm merged 3 commits intomatplotlib:masterfrom
QuLogic:js-format
Apr 10, 2020
Merged

Add eslint & prettier, and re-format JS#17026
timhoffm merged 3 commits intomatplotlib:masterfrom
QuLogic:js-format

Conversation

@QuLogic
Copy link
Copy Markdown
Member

@QuLogic QuLogic commented Apr 4, 2020

PR Summary

This re-formats the JavaScript code we have using prettier, and adds eslint. The config is similar to ipywidgets, though without the TypeScript bits. It is a corollary to matplotlib/ipympl#213 so that we can sync changes better without stylistic drift (if necessary.) Some things in that PR are not applied here because we do not use any of the newer JS features.

PR Checklist

  • [N/A] Has Pytest style unit tests
  • [N/A] Code is Flake 8 compliant
  • [N/A] New features are documented, with examples if plot related
  • [N/A] Documentation is sphinx and numpydoc compliant
  • [N/A] Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • [N/A] Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

QuLogic added 3 commits April 4, 2020 00:23
These are setup similar to ipywidgets, but with slightly less newer
things, as our JavaScript parts are much older.
@tacaswell
Copy link
Copy Markdown
Member

Do we want to wait for the ipympl one to go in to merge this or just go ahead? If we want to go ahead I'm 👍 on @QuLogic self-merging to un-block #17027

@QuLogic
Copy link
Copy Markdown
Member Author

QuLogic commented Apr 10, 2020

I'll leave it for about a week, but then will merge as there's a whole train of PRs that follow.

@timhoffm timhoffm merged commit 5eef7b1 into matplotlib:master Apr 10, 2020
@QuLogic QuLogic deleted the js-format branch April 11, 2020 21:38
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.

3 participants