Issues with JavaScript objects and Linting in Dreamweaver 19.0

Issue-1: JavaScript objects are undefined in Dreamweaver 19.0

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. 

Issue description

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. 

Issue-2: JavaScript Linting does not work as expected

Issue description

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. 

Workaround-2

This issue has been fixed by updating the .eslintrc.js configuration file. Follow the steps below to use the updated .eslintrc.js configuration file. 

 Adobe

Отримуйте допомогу швидше й простіше

Новий користувач?