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

chore(build): address linting rule violations #9396

Merged
merged 3 commits into from
Aug 9, 2023

Conversation

jenny-s51
Copy link
Contributor

What: Closes #8657 and #8658

Re-enabled no-anonymous-functions and prettier. Fixes linting violations and errors thrown by no-anonymous-functions rule.

Outside of this issue we may want to have a larger discussion about any modifications we may want to make to .eslintrc.json and how to align the best practices with PF needs cc @nicolethoen

@jenny-s51 jenny-s51 marked this pull request as draft July 21, 2023 15:20
@jenny-s51 jenny-s51 changed the title Address linting rule violations chore(misc): address linting rule violations Jul 21, 2023
@jenny-s51 jenny-s51 changed the title chore(misc): address linting rule violations chore(build): address linting rule violations Jul 21, 2023
@patternfly-build
Copy link
Contributor

patternfly-build commented Jul 21, 2023

@jenny-s51 jenny-s51 marked this pull request as ready for review July 24, 2023 17:49
Copy link
Contributor

@thatblindgeye thatblindgeye left a comment

Choose a reason for hiding this comment

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

Just a couple quick questions below

Copy link
Contributor

@nicolethoen nicolethoen left a comment

Choose a reason for hiding this comment

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

does linting fail if you revert the two changes that Eric noted? I would definitely wonder why that's the case in only those two files...

Otherwise, this LGTM

Copy link
Contributor Author

@jenny-s51 jenny-s51 left a comment

Choose a reason for hiding this comment

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

Thanks @thatblindgeye @nicolethoen - reverted. The only outstanding linting error is an incompatibility issue with Prettier versions, should be fixed once #9473 is merged

fix styling

test errors

disable rule

enable rule

try moving export

update class component exports

fix table export

fix test

fix linting errors

PR feedback from Eric
@jenny-s51 jenny-s51 requested a review from thatblindgeye August 8, 2023 17:18
@nicolethoen nicolethoen merged commit ad33120 into patternfly:main Aug 9, 2023
nicolethoen pushed a commit to Kells512/patternfly-react that referenced this pull request Sep 1, 2023
* WIP ESlint errors

fix styling

test errors

disable rule

enable rule

try moving export

update class component exports

fix table export

fix test

fix linting errors

PR feedback from Eric

* revert remove displayName and fix lint issues

* fix lint error in test
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

Successfully merging this pull request may close these issues.

Address issues now being flagged by Prettier
4 participants