Commit 4c1b7623 authored by Marcin Grabias's avatar Marcin Grabias
Browse files

Some eslint config and js nits; updated example module info.

parent 4f6ee09d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
{
  "extends": "eslint:recommended",
  "root": true,
  "parserOptions": {
    "ecmaVersion": "latest"
  },
  "env": {
    "browser": true
  },
@@ -89,6 +92,7 @@
        "returns": "return",
        "property": "prop"
      },
      "requireParamDescription": false,
      "requireReturn": false
    }]
  }
+4 −1
Original line number Diff line number Diff line
@@ -32,7 +32,8 @@
    /**
     * Bind event handlers to an element.
     *
     * @param {jQuery} element
     * @param {jQuery} $element
     * @param {int} index
     */
    bindEventHandlers($element, index) {
      if ($element.length) {
@@ -145,6 +146,8 @@

  /**
   * Callback used in {@link Drupal.behaviors.views_bulk_operations}.
   *
   * @param {object} element
   */
  Drupal.viewsBulkOperationsFrontUi = function (element) {
    var $vboForm = $(element);
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ type: module
name: 'Views Bulk Operations example'
description: 'Defines an example action with all possible options.'
package: 'Examples'
core_version_requirement: ^9 || ^10
core_version_requirement: ^9.4 || ^10
hidden: true
dependencies:
  - drupal:views_bulk_operations