eslint object-shorthand error with variable passed in

An excerpt from eslint regarding the issue:

Require Object Literal Shorthand Syntax (object-shorthand) – Rule Details

This rule enforces the use of the shorthand syntax. This applies to
all methods (including generators) defined in object literals and any
properties defined where the key name matches name of the assigned
variable.

Change

closeOnSelect: closeOnSelect

to just

closeOnSelect

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)