From 6776cc308fd309015695784e7fc744e7e74e7567 Mon Sep 17 00:00:00 2001 From: David 'Epper' Marshall Date: Thu, 14 Sep 2023 12:55:44 -0400 Subject: [PATCH] PascalCase files (#6955) * PascalCase files * git mv for file name change * renamed files * merge changes from master * fix: template name * sort imports --------- Co-authored-by: Jesse Mazzella Co-authored-by: Jesse Mazzella --- .eslintrc.js | 13 +++++++- package.json | 1 + src/api/forms/components/controls/Locator.vue | 2 +- .../LADTableConfigurationViewProvider.js | 6 ++-- src/plugins/LADTable/LADTableView.js | 2 +- .../components/{LADRow.vue => LadRow.vue} | 0 .../components/{LADTable.vue => LadTable.vue} | 2 +- ...guration.vue => LadTableConfiguration.vue} | 0 .../LADTable/components/LadTableSet.vue | 2 +- ...Indicator.vue => GlobalClearIndicator.vue} | 0 src/plugins/clearData/plugin.js | 2 +- .../components/inspector/StyleEditor.vue | 6 ++-- .../faultManagement/FaultManagementSearch.vue | 2 +- .../{container.vue => Container.vue} | 6 ++-- .../components/{dropHint.vue => DropHint.vue} | 0 ...{flexibleLayout.vue => FlexibleLayout.vue} | 6 ++-- .../components/{frame.vue => Frame.vue} | 0 .../{resizeHandle.vue => ResizeHandle.vue} | 0 .../flexibleLayoutViewProvider.js | 2 +- .../imagery/components/Compass/Compass.vue | 6 ++-- .../{CompassHUD.vue => CompassHud.vue} | 0 .../inspectorViews/elements/ElementsPool.vue | 2 +- .../elements/PlotElementsPool.vue | 2 +- .../styles/StylesInspectorView.vue | 8 ++--- src/plugins/notebook/components/Notebook.vue | 3 +- .../tabs/components/{tabs.vue => Tabs.vue} | 0 src/plugins/tabs/tabs.js | 2 +- .../TableConfigurationViewProvider.js | 2 +- .../telemetryTable/TelemetryTableView.js | 2 +- .../{sizing-row.vue => SizingRow.vue} | 0 .../components/{table.vue => Table.vue} | 12 +++---- .../{table-cell.vue => TableCell.vue} | 0 ...olumn-header.vue => TableColumnHeader.vue} | 0 ...nfiguration.vue => TableConfiguration.vue} | 0 ...indicator.vue => TableFooterIndicator.vue} | 0 .../{table-row.vue => TableRow.vue} | 2 +- .../timeConductor/ConductorInputsFixed.vue | 2 +- .../timeConductor/ConductorInputsRealtime.vue | 2 +- ...{timePopupFixed.vue => TimePopupFixed.vue} | 0 ...opupRealtime.vue => TimePopupRealtime.vue} | 0 ...nuDropDown.vue => ContextMenuDropDown.vue} | 0 src/ui/components/{search.vue => Search.vue} | 0 .../{viewControl.vue => ViewControl.vue} | 0 src/ui/layout/Layout.vue | 10 +++--- src/ui/layout/{mct-tree.vue => MctTree.vue} | 8 ++--- .../layout/{multipane.vue => Multipane.vue} | 0 src/ui/layout/{pane.vue => Pane.vue} | 0 src/ui/layout/{tree-item.vue => TreeItem.vue} | 4 +-- src/ui/layout/search/GrandSearch.vue | 4 +-- src/ui/preview/Preview.vue | 2 +- .../{preview-header.vue => PreviewHeader.vue} | 2 +- src/ui/toolbar/Toolbar.vue | 32 +++++++++---------- .../{toolbar-button.vue => ToolbarButton.vue} | 0 ...olbar-checkbox.vue => ToolbarCheckbox.vue} | 0 ...olor-picker.vue => ToolbarColorPicker.vue} | 0 .../{toolbar-input.vue => ToolbarInput.vue} | 0 .../{toolbar-menu.vue => ToolbarMenu.vue} | 0 ...-select-menu.vue => ToolbarSelectMenu.vue} | 0 ...bar-separator.vue => ToolbarSeparator.vue} | 0 ...gle-button.vue => ToolbarToggleButton.vue} | 0 60 files changed, 85 insertions(+), 74 deletions(-) rename src/plugins/LADTable/components/{LADRow.vue => LadRow.vue} (100%) rename src/plugins/LADTable/components/{LADTable.vue => LadTable.vue} (99%) rename src/plugins/LADTable/components/{LADTableConfiguration.vue => LadTableConfiguration.vue} (100%) rename src/plugins/clearData/components/{globalClearIndicator.vue => GlobalClearIndicator.vue} (100%) rename src/plugins/flexibleLayout/components/{container.vue => Container.vue} (97%) rename src/plugins/flexibleLayout/components/{dropHint.vue => DropHint.vue} (100%) rename src/plugins/flexibleLayout/components/{flexibleLayout.vue => FlexibleLayout.vue} (98%) rename src/plugins/flexibleLayout/components/{frame.vue => Frame.vue} (100%) rename src/plugins/flexibleLayout/components/{resizeHandle.vue => ResizeHandle.vue} (100%) rename src/plugins/imagery/components/Compass/{CompassHUD.vue => CompassHud.vue} (100%) rename src/plugins/tabs/components/{tabs.vue => Tabs.vue} (100%) rename src/plugins/telemetryTable/components/{sizing-row.vue => SizingRow.vue} (100%) rename src/plugins/telemetryTable/components/{table.vue => Table.vue} (99%) rename src/plugins/telemetryTable/components/{table-cell.vue => TableCell.vue} (100%) rename src/plugins/telemetryTable/components/{table-column-header.vue => TableColumnHeader.vue} (100%) rename src/plugins/telemetryTable/components/{table-configuration.vue => TableConfiguration.vue} (100%) rename src/plugins/telemetryTable/components/{table-footer-indicator.vue => TableFooterIndicator.vue} (100%) rename src/plugins/telemetryTable/components/{table-row.vue => TableRow.vue} (99%) rename src/plugins/timeConductor/{timePopupFixed.vue => TimePopupFixed.vue} (100%) rename src/plugins/timeConductor/{timePopupRealtime.vue => TimePopupRealtime.vue} (100%) rename src/ui/components/{contextMenuDropDown.vue => ContextMenuDropDown.vue} (100%) rename src/ui/components/{search.vue => Search.vue} (100%) rename src/ui/components/{viewControl.vue => ViewControl.vue} (100%) rename src/ui/layout/{mct-tree.vue => MctTree.vue} (99%) rename src/ui/layout/{multipane.vue => Multipane.vue} (100%) rename src/ui/layout/{pane.vue => Pane.vue} (100%) rename src/ui/layout/{tree-item.vue => TreeItem.vue} (98%) rename src/ui/preview/{preview-header.vue => PreviewHeader.vue} (98%) rename src/ui/toolbar/components/{toolbar-button.vue => ToolbarButton.vue} (100%) rename src/ui/toolbar/components/{toolbar-checkbox.vue => ToolbarCheckbox.vue} (100%) rename src/ui/toolbar/components/{toolbar-color-picker.vue => ToolbarColorPicker.vue} (100%) rename src/ui/toolbar/components/{toolbar-input.vue => ToolbarInput.vue} (100%) rename src/ui/toolbar/components/{toolbar-menu.vue => ToolbarMenu.vue} (100%) rename src/ui/toolbar/components/{toolbar-select-menu.vue => ToolbarSelectMenu.vue} (100%) rename src/ui/toolbar/components/{toolbar-separator.vue => ToolbarSeparator.vue} (100%) rename src/ui/toolbar/components/{toolbar-toggle-button.vue => ToolbarToggleButton.vue} (100%) diff --git a/.eslintrc.js b/.eslintrc.js index f9c7d922bc..66e1c13ae4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -9,7 +9,7 @@ module.exports = { globals: { _: 'readonly' }, - plugins: ['prettier', 'simple-import-sort'], + plugins: ['prettier', 'unicorn', 'simple-import-sort'], extends: [ 'eslint:recommended', 'plugin:compat/recommended', @@ -145,6 +145,17 @@ module.exports = { 'no-implicit-coercion': 'error', //https://eslint.org/docs/rules/no-unneeded-ternary 'no-unneeded-ternary': 'error', + "unicorn/filename-case": [ + "error", + { + "cases": { + "pascalCase": true + }, + "ignore": [ + "^.*\\.js$" + ] + } + ], 'vue/first-attribute-linebreak': 'error', 'vue/multiline-html-element-content-newline': 'off', 'vue/singleline-html-element-content-newline': 'off', diff --git a/package.json b/package.json index f82eef4822..0ffade55bc 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "eslint-plugin-playwright": "0.12.0", "eslint-plugin-prettier": "4.2.1", "eslint-plugin-simple-import-sort": "10.0.0", + "eslint-plugin-unicorn": "44.0.2", "eslint-plugin-vue": "9.15.0", "eslint-plugin-you-dont-need-lodash-underscore": "6.12.0", "eventemitter3": "1.2.0", diff --git a/src/api/forms/components/controls/Locator.vue b/src/api/forms/components/controls/Locator.vue index 95ce8f890c..371371015a 100644 --- a/src/api/forms/components/controls/Locator.vue +++ b/src/api/forms/components/controls/Locator.vue @@ -29,7 +29,7 @@