Skip to content

Commit

Permalink
style(eslint): apply fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NickDJM committed Jun 30, 2023
1 parent 4394ff8 commit fe7b7c2
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 12 deletions.
5 changes: 4 additions & 1 deletion src/bootstrap4DisclosureMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ class Bootstrap4DisclosureMenu extends DisclosureMenu {
* The class to use when generating submenus.
*
* @type {typeof Bootstrap4DisclosureMenu}
*
* @protected
*/
_MenuType = Bootstrap4DisclosureMenu;
_MenuType = Bootstrap4DisclosureMenu; // eslint-disable-line no-use-before-define

/**
* The class to use when generating menu items.
*
* @type {typeof Bootstrap4DisclosureMenuItem}
*
* @protected
*/
_MenuItemType = Bootstrap4DisclosureMenuItem;
Expand All @@ -30,6 +32,7 @@ class Bootstrap4DisclosureMenu extends DisclosureMenu {
* The class to use when generating submenu toggles.
*
* @type {typeof Bootstrap4DisclosureMenuToggle}
*
* @protected
*/
_MenuToggleType = Bootstrap4DisclosureMenuToggle;
Expand Down
3 changes: 2 additions & 1 deletion src/bootstrap4DisclosureMenuItem.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable jsdoc/no-undefined-types */
// eslint-disable-next-line no-unused-vars
/* global Bootstrap4DisclosureMenu Bootstrap4DisclosureMenuToggle */

import DisclosureMenuItem from "accessible-menu/src/disclosureMenuItem.js";

Expand Down
6 changes: 4 additions & 2 deletions src/bootstrap4DisclosureMenuToggle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable jsdoc/no-undefined-types */
// eslint-disable-next-line no-unused-vars
/* global Bootstrap4DisclosureMenu */

import DisclosureMenuToggle from "accessible-menu/src/disclosureMenuToggle.js";

Expand All @@ -9,7 +10,8 @@ class Bootstrap4DisclosureMenuToggle extends DisclosureMenuToggle {
/**
* The DOM elements within the menu toggle.
*
* @type {object.<HTMLElement>}
* @type {Object<HTMLElement>}
*
* @property {HTMLElement} toggle - The menu toggle.
* @property {HTMLElement} parent - The menu containing this toggle.
* @property {HTMLElement} container - The element that controlls the visibility of the child menu.
Expand Down
5 changes: 4 additions & 1 deletion src/bootstrap4Menubar.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ class Bootstrap4Menubar extends Menubar {
* The class to use when generating submenus.
*
* @type {typeof Bootstrap4Menubar}
*
* @public
*/
_MenuType = Bootstrap4Menubar;
_MenuType = Bootstrap4Menubar; // eslint-disable-line no-use-before-define

/**
* The class to use when generating menu items.
*
* @type {typeof Bootstrap4MenubarItem}
*
* @public
*/
_MenuItemType = Bootstrap4MenubarItem;
Expand All @@ -28,6 +30,7 @@ class Bootstrap4Menubar extends Menubar {
* The class to use when generating submenu toggles.
*
* @type {typeof Bootstrap4MenubarToggle}
*
* @public
*/
_MenuToggleType = Bootstrap4MenubarToggle;
Expand Down
3 changes: 2 additions & 1 deletion src/bootstrap4MenubarItem.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable jsdoc/no-undefined-types */
// eslint-disable-next-line no-unused-vars
/* global Bootstrap4Menubar Bootstrap4MenubarToggle */

import MenubarItem from "accessible-menu/src/menubarItem.js";

Expand Down
6 changes: 4 additions & 2 deletions src/bootstrap4MenubarToggle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable jsdoc/no-undefined-types */
// eslint-disable-next-line no-unused-vars
/* global Bootstrap4Menubar */

import MenubarToggle from "accessible-menu/src/menubarToggle.js";

Expand All @@ -9,7 +10,8 @@ class Bootstrap4MenubarToggle extends MenubarToggle {
/**
* The DOM elements within the menu toggle.
*
* @type {object.<HTMLElement>}
* @type {Object<HTMLElement>}
*
* @property {HTMLElement} toggle - The menu toggle.
* @property {HTMLElement} parent - The menu containing this toggle.
* @property {HTMLElement} container - The element that controlls the visibility of the child menu.
Expand Down
5 changes: 4 additions & 1 deletion src/bootstrap4Treeview.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ class Bootstrap4Treeview extends Treeview {
* The class to use when generating submenus.
*
* @type {typeof Bootstrap4Treeview}
*
* @public
*/
_MenuType = Bootstrap4Treeview;
_MenuType = Bootstrap4Treeview; // eslint-disable-line no-use-before-define

/**
* The class to use when generating menu items.
*
* @type {typeof Bootstrap4TreeviewItem}
*
* @public
*/
_MenuItemType = Bootstrap4TreeviewItem;
Expand All @@ -28,6 +30,7 @@ class Bootstrap4Treeview extends Treeview {
* The class to use when generating submenu toggles.
*
* @type {typeof Bootstrap4TreeviewToggle}
*
* @public
*/
_MenuToggleType = Bootstrap4TreeviewToggle;
Expand Down
3 changes: 2 additions & 1 deletion src/bootstrap4TreeviewItem.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable jsdoc/no-undefined-types */
// eslint-disable-next-line no-unused-vars
/* global Bootstrap4Treeview Bootstrap4TreeviewToggle */

import TreeviewItem from "accessible-menu/src/treeviewItem.js";

Expand Down
6 changes: 4 additions & 2 deletions src/bootstrap4TreeviewToggle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable jsdoc/no-undefined-types */
// eslint-disable-next-line no-unused-vars
/* global Bootstrap4Treeview */

import TreeviewToggle from "accessible-menu/src/treeviewToggle.js";

Expand All @@ -9,7 +10,8 @@ class Bootstrap4TreeviewToggle extends TreeviewToggle {
/**
* The DOM elements within the menu toggle.
*
* @type {object.<HTMLElement>}
* @type {Object<HTMLElement>}
*
* @property {HTMLElement} toggle - The menu toggle.
* @property {HTMLElement} parent - The menu containing this toggle.
* @property {HTMLElement} container - The element that controlls the visibility of the child menu.
Expand Down
2 changes: 2 additions & 0 deletions tests/menus/_common/aria.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Reusable ARIA tests.
*
* @jest-environment jsdom
*/
/* eslint-disable no-new */
Expand All @@ -8,6 +9,7 @@ import { twoLevelMenu } from "./test-menus";

/**
* A set of ARIA tests.
*
* @param {(typeof Bootstrap4DisclosureMenu|typeof Bootstrap4Menubar|typeof Bootstrap4Treeview)} MenuClass - The menu class to test.
*/
export function aria(MenuClass) {
Expand Down
2 changes: 2 additions & 0 deletions updater-readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* version in the README file and updates them.
*/

/* eslint-disable jsdoc/require-returns-check */

/**
* Get the current version of the README file.
*
Expand Down

0 comments on commit fe7b7c2

Please sign in to comment.