E110

Error

Syntax and structure

E110 — A project script that cannot be a plain script

A .js file under src/ is linked as a plain browser script: one with import or export, one a file in public/ would replace, or one whose names clash with the program's, cannot be.

The fix

take off the import/export (a top-level function is global as it is), keep one of the two files, or rename the clashing name.

Why this rule exists

A .js file under src/ with an import or export, one a file in public/ at the same address would replace, or one declaring a name the program, the language or the browser already has.

lints cannot lower it: it would ship a broken page.