quick-lint-js

Find bugs in JavaScript programs.

E0253: use ':' instead of '=' in object literals

JavaScript object literals are key-value pairs. In an expression, it is a syntax error to write = instead of : between the key and the value in an object literal:

import fs from 'node:fs/promises';
await fs.mkdir("build/temp", { recursive = true });

To fix this error, replace = with ::

import fs from 'node:fs/promises';
await fs.mkdir("build/temp", { recursive: true });

Introduced in quick-lint-js version 2.7.0.

Documentation for other errors