stable
Clone or download
Read-only
request #12498 Lint Vue files with eslint
Adds eslint-plugin-vue to the eslint configuration. Adds the plugin:vue/recommended configuration, with some additions and laxer rules for style (see .eslintrc.js for details). I applied the new rules on all our existing Vue files. All of the styling-related rules can be automatically applied with --fix option (which is offered when the pre-commit hook fails). How to test: - No functional changes expected on any of the modified Vue apps. - When you try to commit a Vue file with incorrect code, the pre-commit hook should stop you. Change-Id: I1ead2a8d9be68a1f766d3b89ff05dc3b2d327c9d
Modified Files
Name | ||||
---|---|---|---|---|
R | .eslintrc | Go to diff View file | ||
M | package-lock.json | +9 | −0 | Go to diff View file |
M | package.json | +2 | −1 | Go to diff View file |
M | plugins/agiledashboard/www/js/permissions-per-group/src/AgileDashboardPermissions.vue | +18 | −18 | Go to diff View file |
M | plugins/create_test_env/scripts/call-me-back-burning-parrot/src/CallMeBack.vue | +15 | −14 | Go to diff View file |
M | plugins/create_test_env/scripts/call-me-back-flaming-parrot/src/CallMeBack.vue | +13 | −12 | Go to diff View file |
M | plugins/crosstracker/scripts/cross-tracker/src/components/ArtifactTableRow.vue | +4 | −3 | Go to diff View file |
M | plugins/crosstracker/scripts/cross-tracker/src/reading-mode/TrackerListReadingMode.vue | +3 | −1 | Go to diff View file |
M | plugins/crosstracker/scripts/cross-tracker/src/writing-mode/QueryEditor.vue | +2 | −1 | Go to diff View file |
M | plugins/crosstracker/scripts/cross-tracker/src/writing-mode/TrackerListWritingMode.vue | +8 | −4 | Go to diff View file |
M | plugins/crosstracker/scripts/cross-tracker/src/writing-mode/TrackerSelection.vue | +15 | −11 | Go to diff View file |
M | plugins/crosstracker/scripts/cross-tracker/src/writing-mode/WritingMode.vue | +3 | −3 | Go to diff View file |
M | plugins/document/scripts/document/components/App.vue | +9 | −9 | Go to diff View file |
M | plugins/document/scripts/document/components/DocumentBreadcrumb.vue | +3 | −2 | Go to diff View file |
M | plugins/git/www/scripts/permissions-per-group/src/GitInlineFilter.vue | +5 | −5 | Go to diff View file |
M | plugins/git/www/scripts/permissions-per-group/src/GitPermissions.vue | +14 | −14 | Go to diff View file |
M | plugins/git/www/scripts/permissions-per-group/src/GitPermissionsTable.vue | +7 | −7 | Go to diff View file |
M | plugins/git/www/scripts/permissions-per-group/src/GitPermissionsTableRepository.vue | +5 | −5 | Go to diff View file |
M | plugins/git/www/scripts/permissions-per-group/src/GitRepositoryTableFineGrainedPermission.vue | +4 | −2 | Go to diff View file |
M | plugins/git/www/scripts/permissions-per-group/src/GitRepositoryTableFineGrainedPermissionsRepository.vue | +2 | −1 | Go to diff View file |
M | plugins/git/www/scripts/permissions-per-group/src/GitRepositoryTableSimplePermissions.vue | +6 | −3 | Go to diff View file |
M | plugins/git/www/scripts/repositories/src/components/ActionBar.vue | +3 | −3 | Go to diff View file |
M | plugins/git/www/scripts/repositories/src/components/ActionBar/SelectOwner.vue | +2 | −1 | Go to diff View file |
M | plugins/git/www/scripts/repositories/src/components/GitBreadcrumbs.vue | +8 | −6 | Go to diff View file |
M | plugins/git/www/scripts/repositories/src/components/GitRepository.vue | +5 | −5 | Go to diff View file |
M | plugins/git/www/scripts/repositories/src/components/GitRepositoryCreate.vue | +13 | −13 | Go to diff View file |
M | plugins/git/www/scripts/repositories/src/components/NoRepositoryEmptyState.vue | +5 | −4 | Go to diff View file |
M | plugins/git/www/scripts/repositories/src/components/folders/CollapsibleFolder.vue | +16 | −16 | Go to diff View file |
M | plugins/git/www/scripts/repository/branch-tag-selector/src/components/App.vue | +14 | −14 | Go to diff View file |
M | plugins/git/www/scripts/repository/branch-tag-selector/src/components/TagsSection.vue | +7 | −7 | Go to diff View file |
M | plugins/label/www/scripts/project-labeled-items/src/LabeledItem.vue | +23 | −1 | Go to diff View file |
M | plugins/label/www/scripts/project-labeled-items/src/LabeledItemsList.vue | +24 | −24 | Go to diff View file |
M | plugins/pullrequest/www/scripts/create-pullrequest-button/src/components/CreatePullrequestModal.vue | +2 | −1 | Go to diff View file |
M | plugins/svn/www/scripts/permissions-per-group/src/SVNPermissions.vue | +13 | −13 | Go to diff View file |
M | plugins/timetracking/www/scripts/personal-timetracking-widget/src/components/Widget.vue | +21 | −21 | Go to diff View file |
M | plugins/timetracking/www/scripts/personal-timetracking-widget/src/components/WidgetArtifactTable.vue | +22 | −22 | Go to diff View file |
M | plugins/timetracking/www/scripts/personal-timetracking-widget/src/components/WidgetArtifactTableRow.vue | +9 | −8 | Go to diff View file |
M | plugins/timetracking/www/scripts/personal-timetracking-widget/src/components/WidgetLinkToArtifact.vue | +18 | −18 | Go to diff View file |
M | plugins/timetracking/www/scripts/personal-timetracking-widget/src/components/WidgetReadingMode.vue | +18 | −18 | Go to diff View file |
M | plugins/timetracking/www/scripts/personal-timetracking-widget/src/components/WidgetWritingMode.vue | +25 | −23 | Go to diff View file |
M | plugins/timetracking/www/scripts/personal-timetracking-widget/src/components/modal/WidgetModalArtifactInfo.vue | +22 | −20 | Go to diff View file |
M | plugins/timetracking/www/scripts/personal-timetracking-widget/src/components/modal/WidgetModalContent.vue | +22 | −20 | Go to diff View file |
M | plugins/timetracking/www/scripts/personal-timetracking-widget/src/components/modal/WidgetModalEditTime.vue | +28 | −27 | Go to diff View file |
M | plugins/timetracking/www/scripts/personal-timetracking-widget/src/components/modal/WidgetModalRow.vue | +18 | −18 | Go to diff View file |
M | plugins/timetracking/www/scripts/personal-timetracking-widget/src/components/modal/WidgetModalTable.vue | +38 | −38 | Go to diff View file |
M | plugins/timetracking/www/scripts/personal-timetracking-widget/src/components/modal/WidgetModalTimes.vue | +18 | −18 | Go to diff View file |
M | plugins/timetracking/www/scripts/timetracking-overview-widget/src/components/TimeTrackingOverview.vue | +18 | −18 | Go to diff View file |
M | plugins/timetracking/www/scripts/timetracking-overview-widget/src/components/TimeTrackingOverviewReadingMode.vue | +18 | −18 | Go to diff View file |
M | plugins/timetracking/www/scripts/timetracking-overview-widget/src/components/TimeTrackingOverviewTable.vue | +38 | −37 | Go to diff View file |
M | plugins/tracker/www/scripts/artifact-action-buttons/src/components/FieldErrorMessage.vue | +3 | −3 | Go to diff View file |
M | plugins/tracker/www/scripts/artifact-action-buttons/src/components/MoveModal.vue | +2 | −2 | Go to diff View file |
M | plugins/tracker/www/scripts/artifact-action-buttons/src/components/MoveModalSelectors.vue | +21 | −2 | Go to diff View file |
M | plugins/tracker/www/scripts/artifact-action-buttons/src/components/ProjectSelector.vue | +1 | −1 | Go to diff View file |
M | plugins/tracker/www/scripts/artifact-action-buttons/src/components/TrackerSelector.vue | +2 | −2 | Go to diff View file |
M | plugins/tracker/www/scripts/colorpicker/ColorPicker.vue | +4 | −4 | Go to diff View file |
M | plugins/tracker/www/scripts/colorpicker/ColorPickerNoColorOption.vue | +1 | −1 | Go to diff View file |
M | plugins/tracker/www/scripts/colorpicker/ColorPickerPalette.vue | +5 | −4 | Go to diff View file |
M | plugins/tracker/www/scripts/colorpicker/ColorPickerPreview.vue | +1 | −1 | Go to diff View file |
M | plugins/tracker/www/scripts/colorpicker/OldColorPickerPalette.vue | +5 | −5 | Go to diff View file |
M | plugins/tracker/www/scripts/colorpicker/OldColorPickerPaletteRow.vue | +1 | −0 | Go to diff View file |
M | plugins/tracker/www/scripts/colorpicker/OldColorPickerPreview.vue | +1 | −1 | Go to diff View file |
M | plugins/tracker/www/scripts/permissions-per-group/src/BaseTrackerPermissions.vue | +1 | −2 | Go to diff View file |
M | src/www/scripts/frs/permissions-per-group/BaseFRSPackagePermissions.vue | +3 | −3 | Go to diff View file |
M | src/www/scripts/frs/permissions-per-group/FRSPackagePermissionsTable.vue | +3 | −3 | Go to diff View file |
M | src/www/scripts/frs/permissions-per-group/FRSPackagePermissionsTablePackage.vue | +4 | −4 | Go to diff View file |
M | src/www/scripts/frs/permissions-per-group/FRSPackagePermissionsTablePackageRelease.vue | +3 | −3 | Go to diff View file |
M | src/www/scripts/project/admin/permissions-per-group/PermissionsPerGroupBadge.vue | +2 | −1 | Go to diff View file |
M | tools/utils/githooks/pre-commit-04-eslint | +1 | −1 | Go to diff View file |