Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-72048

Determine correct location and Lint configuration for third-party plugin mobile JS

    XMLWordPrintable

Details

    • Task
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 3.10.4, 3.11.1, 4.0
    • None
    • Policy
    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_400_STABLE

    Description

      The Moodle Mobile app allows third-party plugins to write JS for their own code.

      Right now we do not require tht all JS be in a specific location which means it is dotted in random places within the plugin. This means that it is impossible to apply relevant linting rules and sanity checks to it.

      We should determine a place for all JS code to be placed, document it, and apply appropriate eslint configuration for that location.

      We should also update the moodle-local_ci plugin and smurf checks to show any JS outside of standard locations for Moodle (amd/src, amd/build, yui, [this new location], module.js).

      Attachments

        Activity

          People

            Unassigned Unassigned
            dobedobedoh Andrew Lyons
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: