Skip to content

Run eslint autofix as a part of client format when using Makefile - #16586

Merged
mvdbeek merged 1 commit into
galaxyproject:devfrom
dannon:make-lint-autofix
Aug 25, 2023
Merged

Run eslint autofix as a part of client format when using Makefile#16586
mvdbeek merged 1 commit into
galaxyproject:devfrom
dannon:make-lint-autofix

Conversation

@dannon

@dannon dannon commented Aug 23, 2023

Copy link
Copy Markdown
Member

xref conversation in UI/UX -- thanks @jmchilton, it's a good idea -- these are all stable fixes at this point and this makes it a bit more convenient for folks who use the make targets. Folks can use the package scripts to format without this behavior if desired.

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. Mess up a fixable linting rule like kebab case and run make client-format

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@dannon dannon changed the title When using make targets run eslint autofix as a part of client format Run eslint autofix as a part of client format when using Makefile Aug 23, 2023
@dannon
dannon marked this pull request as ready for review August 23, 2023 14:24
@github-actions github-actions Bot added this to the 23.2 milestone Aug 23, 2023
Comment thread Makefile
client-lint-autofix: client-node-deps ## Automatically fix linting errors in client code
$(IN_VENV) cd client && yarn run eslint --quiet --fix

client-format: client-node-deps client-lint-autofix ## Reformat client code, ensures autofixes are applied first

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I missed #16462 - this plus that are amazing! Thanks so much for these improvements to the dev experience @dannon - I love them.

@mvdbeek
mvdbeek merged commit 027f532 into galaxyproject:dev Aug 25, 2023
@galaxyproject galaxyproject deleted a comment from github-actions Bot Aug 25, 2023
@itisAliRH
itisAliRH deleted the make-lint-autofix branch August 30, 2023 03:00
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