Eslint prefer-const (#17864)

* adds prefer-const to eslint config and runs fixer

* reverts unintended change
This commit is contained in:
Jordan Reimer
2022-11-09 16:15:31 -07:00
committed by GitHub
parent 96d623d3fc
commit 483ef19946
464 changed files with 1701 additions and 1714 deletions

View File

@@ -16,13 +16,13 @@ export default Component.extend({
},
maybeHideFeatures() {
let features = this.allFeatures;
const features = this.allFeatures;
features.forEach((feat) => {
feat.disabled = this.doesNotHavePermission(feat.requiredPermissions);
});
if (this.showReplication === false) {
let feature = this.allFeatures.findBy('key', 'replication');
const feature = this.allFeatures.findBy('key', 'replication');
feature.show = false;
}
},
@@ -41,7 +41,7 @@ export default Component.extend({
estimatedTime: computed('selectedFeatures', function () {
let time = 0;
for (let feature of Object.keys(FEATURE_MACHINE_TIME)) {
for (const feature of Object.keys(FEATURE_MACHINE_TIME)) {
if (this.selectedFeatures.includes(feature)) {
time += FEATURE_MACHINE_TIME[feature];
}
@@ -137,7 +137,7 @@ export default Component.extend({
actions: {
saveFeatures() {
let wizard = this.wizard;
const wizard = this.wizard;
wizard.saveFeatures(this.selectedFeatures);
wizard.transitionTutorialMachine('active.select', 'CONTINUE');
},