quick-lint-js

Find bugs in JavaScript programs.

E0153: forwarding exports are only allowed in export-from

An export statement can forward exports from another module. It is a syntax error to forward exports without specifying which module to import from:

export {"React"};

To fix this error, write from then the other module's name after the list of exports:

export {"React"} from "react";

Alternatively, import the symbols separately with an import statement:

import {React} from "react";
export {React};

Documentation for other errors