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

@@ -8,7 +8,7 @@ module('Integration | Component | transform-list-item', function (hooks) {
setupRenderingTest(hooks);
test('it renders un-clickable item if no read capability', async function (assert) {
let item = EmberObject.create({
const item = EmberObject.create({
id: 'foo',
updatePath: {
canRead: false,
@@ -30,7 +30,7 @@ module('Integration | Component | transform-list-item', function (hooks) {
});
test('it is clickable with details menu item if read capability', async function (assert) {
let item = EmberObject.create({
const item = EmberObject.create({
id: 'foo',
updatePath: {
canRead: true,
@@ -53,7 +53,7 @@ module('Integration | Component | transform-list-item', function (hooks) {
});
test('it has details and edit menu item if read & edit capabilities', async function (assert) {
let item = EmberObject.create({
const item = EmberObject.create({
id: 'foo',
updatePath: {
canRead: true,
@@ -76,7 +76,7 @@ module('Integration | Component | transform-list-item', function (hooks) {
});
test('it is not clickable if built-in template with all capabilities', async function (assert) {
let item = EmberObject.create({
const item = EmberObject.create({
id: 'builtin/foo',
updatePath: {
canRead: true,
@@ -98,7 +98,7 @@ module('Integration | Component | transform-list-item', function (hooks) {
});
test('it is not clickable if built-in alphabet', async function (assert) {
let item = EmberObject.create({
const item = EmberObject.create({
id: 'builtin/foo',
updatePath: {
canRead: true,