When you update Dreamweaver to the latest version 19.0, sometimes you get an error as "ERROR: 'document' is not defined. [no-undef]". Some of the basic JavaScript objects such as document or window are not defined.
Environment
Dreamweaver 19.0 on all supported operating systems.
Dreamweaver supports ECMAScript 6 syntax in Dreamweaver 19.0. Dreamweaver also supports linting of ECMAScript code, with ESLint defaulting as JavaScript linter.
In some instances, basic JavaScript objects are not defined.
Dreamweaver now supports ECMAScript 6 syntax in Dreamweaver 19.0. Dreamweaver also supports linting of ECMAScript code, with ESLint defaulting as JavaScript linter.
The ESLint version supported in Dreamweaver 19.0 is 3.19. Some of the rules provided in .eslintrc.js configuration file such as for-direction and getter-return belong to the latest version of ESLint. Hence, this issue occurs.