Update linting packages to use latest
- 99% of changes were small syntax changes that were changed by the
lint command. There were a couple of small manual changes to meet the
property order patterns established as part of the vue:recommended
guidelines.
There are rules that were set from errors to warnings and new stories
are being opened to address those issues.
Testing:
- Successfully ran npm run serve
- Successfully ran npm run lint
- Verified functionality works as expected, e.g. success and failure use cases
- Resolved any JavaScript errors thrown to the console
Signed-off-by: Derick Montague <derick.montague@ibm.com>
Change-Id: Ie082f31c73ccbe8a60afa8f88a9ef6dbf33d9fd2
diff --git a/src/store/modules/Health/PowerSupplyStore.js b/src/store/modules/Health/PowerSupplyStore.js
index 4e3d5fe..565715f 100644
--- a/src/store/modules/Health/PowerSupplyStore.js
+++ b/src/store/modules/Health/PowerSupplyStore.js
@@ -3,14 +3,14 @@
const PowerSupplyStore = {
namespaced: true,
state: {
- powerSupplies: []
+ powerSupplies: [],
},
getters: {
- powerSupplies: state => state.powerSupplies
+ powerSupplies: (state) => state.powerSupplies,
},
mutations: {
setPowerSupply: (state, data) => {
- state.powerSupplies = data.map(powerSupply => {
+ state.powerSupplies = data.map((powerSupply) => {
const {
EfficiencyPercent,
FirmwareVersion,
@@ -20,7 +20,7 @@
PartNumber,
PowerInputWatts,
SerialNumber,
- Status
+ Status,
} = powerSupply;
return {
id: MemberId,
@@ -32,10 +32,10 @@
indicatorLed: IndicatorLED,
model: Model,
powerInputWatts: PowerInputWatts,
- statusState: Status.State
+ statusState: Status.State,
};
});
- }
+ },
},
actions: {
async getPowerSupply({ commit }) {
@@ -44,9 +44,9 @@
.then(({ data: { PowerSupplies } }) =>
commit('setPowerSupply', PowerSupplies)
)
- .catch(error => console.log(error));
- }
- }
+ .catch((error) => console.log(error));
+ },
+ },
};
export default PowerSupplyStore;