E0074: '.' operator needs a key name; use + to concatenate strings; use [] to access with a dynamic key
The right-hand side of the .
operator must be a property name or a private
property name. It is an error for .
to be followed by a literal:
To fix this error, access properties using [
]
instead of .
:
Alternatively, concatenate strings using +
instead of .
:
Introduced in quick-lint-js version 0.2.0.