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

Fix/script ordering #223

Merged
merged 4 commits into from
Nov 25, 2020
Merged

Fix/script ordering #223

merged 4 commits into from
Nov 25, 2020

Conversation

just-at-uber
Copy link
Contributor

@just-at-uber just-at-uber commented Nov 24, 2020

Reordering <script> tag to be the first element in a .vue file.
Used new lint rule to achieve & enforce this rule (see eslint-plugin-vue/component-tags-order for more information).
Also for two of the files (client/components/loading-spinner.vue & client/routes/domain/workflow-archival/components/archival-table.vue) have created a <script> tag as these were missing.
This is needed in order to inject license headers correctly, as this is a limitation of the library (see #220 & Stuk/eslint-plugin-header#32 for more information).

No other changes are included in this PR.

Screenshots

Before changes with lint rule
Screen Shot 2020-11-24 at 9 33 05 AM

After changes with lint rule
Screen Shot 2020-11-24 at 9 33 27 AM

export default {
name: 'loading-spinner',
};
</script>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

creating <script> tag here as it is missing.

export default {
name: 'archival-table',
};
</script>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

creating <script> tag here as it is missing.

@just-at-uber just-at-uber marked this pull request as ready for review November 24, 2020 17:35
@just-at-uber just-at-uber requested a review from a team November 24, 2020 21:31
Copy link

@mkolodezny mkolodezny left a comment

Choose a reason for hiding this comment

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

Looking good, thanks for double check!

@just-at-uber just-at-uber merged commit a4c787e into master Nov 25, 2020
@just-at-uber just-at-uber deleted the fix/script-ordering branch November 25, 2020 19:38
@just-at-uber just-at-uber mentioned this pull request Dec 17, 2020
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.

None yet

2 participants