refactor: add prefer-const to .eslintrc + fix errors (#14880)

This commit is contained in:
Milan Burda 2018-10-02 03:56:31 +02:00 committed by Samuel Attard
parent 07161a8452
commit 3ad3ade828
47 changed files with 239 additions and 238 deletions

View file

@ -71,7 +71,7 @@ describe('deprecations', () => {
deprecations.setHandler(m => { msg = m })
const prop = 'itMustGo'
let o = { [prop]: 0 }
const o = { [prop]: 0 }
deprecate.removeProperty(o, prop)
@ -88,7 +88,7 @@ describe('deprecations', () => {
const key = 'foo'
const val = 'bar'
let o = { [key]: val }
const o = { [key]: val }
deprecate.removeProperty(o, key)
for (let i = 0; i < 3; ++i) {
@ -104,7 +104,7 @@ describe('deprecations', () => {
const oldProp = 'dingyOldName'
const newProp = 'shinyNewName'
let o = { [oldProp]: 0 }
const o = { [oldProp]: 0 }
deprecate.renameProperty(o, oldProp, newProp)
expect(msg).to.be.a('string')