Fixes grunt check warnings in yoastseo#20952
Merged
mhkuu merged 16 commits intoreleasing-yoastseofrom Dec 21, 2023
Merged
Conversation
FAMarfuaty
commented
Dec 18, 2023
| * \u061B - Arabic semicolon | ||
| */ | ||
| wordBoundary = "[ \\u00a0\\u2014\\u06d4\\u061f\\u060C\\u061B\\n\\r\\t\.,\(\)”“〝〞〟‟„\"\+\\-;!¡\?¿:\/»«‹›" + extraWordBoundary + "<>"; | ||
| wordBoundary = "[ \\u00a0\\u2014\\u06d4\\u061f\\u060C\\u061B\\n\\r\\t.,()”“〝〞〟‟„\"+\\-;!¡?¿:/»«‹›" + extraWordBoundary + "<>"; |
Contributor
Author
There was a problem hiding this comment.
I removed the useless escape. It looks like it's okay to do so. All specs are still passing
FAMarfuaty
commented
Dec 18, 2023
| "pretest": "grunt get-premium-configuration", | ||
| "test": "jest", | ||
| "lint": "eslint src", | ||
| "lint": "eslint src spec --max-warnings 12", |
Contributor
Author
There was a problem hiding this comment.
For now I set the maximum warnings to 12. But it can also be changed later
Contributor
There was a problem hiding this comment.
I'm going to lower it to 10, given that we currently have 10 warnings! 👍
mhkuu
approved these changes
Dec 21, 2023
Contributor
mhkuu
left a comment
There was a problem hiding this comment.
CR: Great stuff, thanks so much @FAMarfuaty 🙌 I really appreciate you taking the time to clean up the package.
Contributor
|
ACC: works as advertised, lowered the number of warnings to 10 🎉 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Summary
This PR can be summarized in the following changelog entry:
yarn lint.Relevant technical choices:
/* eslint-disable max-len */statements are removed for strings and regexes. Adding the disabling statement is not relevant anymore. This is because ineslintrc.jsthe@stylistic/max-lexis disabled already for strings and regexes.packages/yoastseo/src/scoring/assessments/seo/KeyphraseLengthAssessment.jsand ingetTransliterations.js. I didn't fix all the complexity warnings since there is a separate issue to do it: https://github.com/Yoast/lingo-other-tasks/issues/73transliterations.jstogetTransliterations.jssince it's actually a function. Hence naming the fnction with verb is better. I also added a spec file for it and added unit tests.Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
yarnto install all dependencies.packages/yoastseo, runyarn lintand make sure that the only warnings are related to complexity and back reference.Relevant test scenarios
Test instructions for QA when the code is in the RC
QA can test this PR by following these steps:
Impact check
This PR affects the following parts of the plugin, which may require extra testing:
UI changes
Other environments
[shopify-seo], added test instructions for Shopify and attached theShopifylabel to this PR.Documentation
Quality assurance
Innovation
innovationlabel.Fixes #