quick-lint-js

Find bugs in JavaScript programs.

E0030: octal literal may not have exponent

Decimal number literals can contain exponents. Octal number literals, which start with an extra 0 digit, cannot contain exponents:

const googol = 01e+100;

To fix this error, make the number literal a decimal number literal by removing the extra leading 0:

const googol = 1e+100;

Documentation for other errors