Skip to content

ESCONF-43 Set ESlint React version setting to detect#128

Closed
alb3rtino wants to merge 2 commits into
masterfrom
ESCONF-43
Closed

ESCONF-43 Set ESlint React version setting to detect#128
alb3rtino wants to merge 2 commits into
masterfrom
ESCONF-43

Conversation

@alb3rtino

Copy link
Copy Markdown

https://folio-org.atlassian.net/browse/ESCONF-43

The React version ESlint setting effects the rule behavior of plugins like eslint-plugin-react. Having it set to an older React version leads to missing or incorrect linting results. By setting it to detect, the current React version will be automatically detected, ensuring up-to-date linting.

@github-actions

github-actions Bot commented Jun 17, 2024

Copy link
Copy Markdown

Jest Unit Test Statistics

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ±0 

Results for commit be848f3. ± Comparison against base commit b34e314.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Jun 17, 2024

Copy link
Copy Markdown

BigTest Unit Test Statistics

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ±0 

Results for commit be848f3. ± Comparison against base commit b34e314.

♻️ This comment has been updated with latest results.

@alb3rtino
alb3rtino requested a review from a team June 17, 2024 14:20

@MikeTaylor MikeTaylor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good, thanks for handling this!

@alb3rtino
alb3rtino requested a review from a team June 17, 2024 14:56

@zburke zburke left a comment

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.

This is obviously correct. Before you merge it, please try it out in a few different repositories to see how it affects things. If there are any changes, announce the pending PR on Slack#stripes-updates before you merge to avoid surprising people with unexpected changes.

Thank you for this fix!

@alb3rtino

Copy link
Copy Markdown
Author

Changing the react version setting is a breaking change, as it alters the linting rules applied. Dependent projects may fail linting checks as a result.

@alb3rtino
alb3rtino requested a review from zburke June 21, 2024 08:25
@zburke

zburke commented Jun 21, 2024

Copy link
Copy Markdown
Member

@alb3rtino , I think this makes sense, but let's run it by @JohnC-80 when he is back next week.

See also folio-org/stripes-cli#349. Nobody has been pushing for that, but we could pull in this new version at the same time, allowing us to avoid a breaking change in stripes-cli later.

@alb3rtino alb3rtino closed this Dec 20, 2024
@alb3rtino
alb3rtino deleted the ESCONF-43 branch December 20, 2024 14:46
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.

4 participants