Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Latest commit

 

History

History
30 lines (18 loc) · 916 Bytes

File metadata and controls

30 lines (18 loc) · 916 Bytes

Disallow use of deprecated jQuery sideNavigation plugin (no-side-navigation)

This rule guards against the use of the deprecated jQuery sideNavigation() API, which was ported to vanilla JavaScript in LPS-95476.

Rule Details

Examples of incorrect code for this rule:

$(toggler).sideNavigation();

$(toggler).sideNavigation('hide');

<span data-toggle="sidenav"></span>;

Examples of correct code for this rule:

Liferay.SideNavigation.initialize(toggler);

Liferay.SideNavigation.hide(toggler);

<span data-toggle="liferay-sidenav"></span>;

Further Reading