así que escribí este fragmento de código para un proyecto, pero ahora mi ESLinter sigue dándome un error sin sombra: sin sombra en la línea 26:43 ¿alguna idea sobre cómo solucionar esto?
const selectionButtons = document.querySelectorAll('[data-selection]'); const finalColumn = document.querySelector('[data-final-column]'); const computerScoreSpan = document.querySelector('[data-computer-score]'); const yourScoreSpan = document.querySelector('[data-your-score]'); const SELECTIONS = [ { name: 'rock', emoji: '✊', beats: 'scissors', }, { name: 'paper', emoji: '✋', beats: 'rock', }, { name: 'scissors', emoji: '✌', beats: 'paper', }, ]; selectionButtons.forEach(selectionButton => { selectionButton.addEventListener('click', e => { const selectionNames = selectionButton.dataset.selection; const selectionchoice = SELECTIONS.find(selection => selection.name === selectionNames); makeSelection(selectionchoice); }); });Aquí se define una selection con nombre de variable:
const selection = SELECTIONS
Y define otra variable llamada selection aquí:
selection => selection....
Y este último ensombrece al primero.
Cambie el nombre de una de las variables.