Merged
Conversation
erxclau
commented
Mar 8, 2022
Comment on lines
+67
to
+85
|
|
||
| data() { | ||
| return { | ||
| showModal: false, | ||
| checkModalResolve: () => {}, | ||
| }; | ||
| }, | ||
|
|
||
| methods: { | ||
| setShowModal(shouldShow) { | ||
| this.showModal = shouldShow; | ||
| }, | ||
|
|
||
| checkModalAction() { | ||
| return new Promise((resolve) => { | ||
| this.checkModalResolve = resolve; | ||
| }); | ||
| }, | ||
| }, |
Contributor
Author
There was a problem hiding this comment.
eslint --fix just moved this code underneath beforeRouteLeave. Nothing about the code itself changed.
ashley-hebler
approved these changes
Mar 9, 2022
Member
ashley-hebler
left a comment
There was a problem hiding this comment.
Another well documented PR! This was lovely, Eric.
I ran through all the steps in the various places and all WFM. I like those vue syntax changes — a little cleaner to read/scan. Agree with your call on staying on eslint 7 to minimize major changes. Awesome that we're even squashing a vulnerability in the process!
My test donation came through on slack so I think this should be fine to merge at your convenience.
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.
What's this PR do?
Bump
vue-js-modalfrom1.3.31to2.0.1Bump
dompurifyfrom2.0.17to2.3.6Bump
webpack-clifrom3.3.4to4.9.2Bump
eslintfrom5.3.0to7.32.07.32.0is sufficient for resolving a vulnerability and I did not want to upgrade to version 8 because it introduces more changes that need to be made.eslint-config-airbnb-basefrom13.2.0to14.2.0to supporteslint@7.xas noted in the release notes.max-classes-per-filerule as noted here on the third line. This requires that we only have one class in a file. There are several classes instatic/js/src/errors.jsandstatic/js/src/entry/account/errors.jsso I added disabling comments in those two files.eslint-plugin-vuefrom6.2.2to7.2.0to supporteslint@7.xas noted in the release notes.v-slotwith the#shorthand. I resolved these errors withnpx eslint --ext .js,.vue static/js/src config --fix.package.jsonto allow camelCase:Why are we doing this? How does it help us?
npm auditshows that bumpingwebpack-cliandeslint(and related packages) will resolvechalk/ansi-regexvulnerabilities. Aansi-regexDependabot alert currently exists.How should this be manually tested?
vue-js-modaldompurifyfirstName,lastName,email, andzipcode.dompurifyis to sanitize HTML/SVG elements from input but by nature of a URL, you can't have/as a character because that'd be a different route entirely.webpack-cli,eslintand related packagesnpm installandmake restartandnpm run lintHow should this change be communicated to end users?
N/A
Are there any smells or added technical debt to note?
No
What are the relevant tickets?
https://3.basecamp.com/3098728/buckets/736178/todos/4696911684
Have you done the following, if applicable:
(optional: add explanation between parentheses)
TODOs / next steps: