Skip to content

Commit

Permalink
chore: enable prefer-default-parameters lint rule (#14540)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored Sep 18, 2023
1 parent 408881b commit adc1315
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ module.exports = {

'unicorn/explicit-length-check': 'error',
'unicorn/no-negated-condition': 'error',
'unicorn/prefer-default-parameters': 'error',
'unicorn/prefer-includes': 'error',
'unicorn/template-indent': 'error',
},
Expand Down
3 changes: 1 addition & 2 deletions website/src/pages/animations/_landingAnimation.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ export function setupLandingAnimation() {
const results = [];
const timeouts = [];

function resolveRun(card, index, minTime) {
minTime = minTime || 500;
function resolveRun(card, index, minTime = 500) {
setTimeout(() => {
if (index === 2) {
results[index] = null;
Expand Down

0 comments on commit adc1315

Please sign in to comment.