quick-lint-js

Find bugs in JavaScript programs.

E0235: missing quotes around module name

Module names are strings. It is a syntax error to import a module without enclosing the module name in quotation marks:

import React from react;
import { readFile } from fs;

To fix this error, add quotation marks around the module's name:

import React from "react";
import { readFile } from 'fs';

Documentation for other errors