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

Auto fix of linting issues #404

Merged
merged 3 commits into from
Jan 21, 2025
Merged

Auto fix of linting issues #404

merged 3 commits into from
Jan 21, 2025

Conversation

andybroomfield
Copy link
Contributor

@andybroomfield andybroomfield commented Jan 19, 2025

Fix #399

What does this change?

Apply auto fixes to alert banner js files using

npx eslint@8 --ext .js --resolve-plugins-relative-to=./web/core --fix web/modules/contrib/localgov_alert_banner
npx eslint@8 --ext .yml --resolve-plugins-relative-to=./web/core --fix web/modules/contrib/localgov_alert_banner
npx stylelint --ignore-path web/core/.stylelintignore --config web/core/.stylelintrc.json --fix web/modules/contrib/localgov_alert_banner/**/*.css

How to test

ESLint tests will now pass (Javascript has 3 warnings)

How can we measure success?

Tests pass and banner still works as expected.

Have we considered potential risks?

Need to make sure we test for any breaks

Ref #399

Apply auto fixes to alert banner js files using
```
npx eslint@8 --ext .js --resolve-plugins-relative-to=./web/core --fix web/modules/contrib/localgov_alert_banner
```
Ref #399

Fixed using
```
npx eslint@8 --ext .yml --resolve-plugins-relative-to=./web/core --fix web/modules/contrib/localgov_alert_banner
```
Ref #399

Fixed with following command
```
npx stylelint --ignore-path web/core/.stylelintignore --config web/core/.stylelintrc.json --fix web/modules/contrib/localgov_alert_banner/**/*.css
```
Copy link
Member

@ekes ekes left a comment

Choose a reason for hiding this comment

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

Can't see anything other than changes of line order, line breaks, single quotes, and case. Passes tests.

Copy link
Contributor

@Adnan-cds Adnan-cds left a comment

Choose a reason for hiding this comment

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

Agree with Ekes. Thanks for the fix :)

@finnlewis finnlewis merged commit b745b08 into 1.x Jan 21, 2025
11 checks passed
@finnlewis finnlewis deleted the fix/1.x-399-eslint branch January 21, 2025 12:13
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.

Fix linting issues
4 participants