Skip to content
Snippets Groups Projects
Select Git revision
  • 332f9e64386d330d0e56bfcdbed75fb26b23d8df
  • RWTHmoodle_4.x default
  • reportlab-integration
  • master-update-ci
  • MOODLE_4-4.1.2
  • MOODLE_3.x
  • bash-version
  • amritad1991-master-patch-37910
  • master protected
  • master_backup
  • rohlfing-enhance-docs
  • rohlfing-patch-qr
  • v1.0.1
  • v1.0.0
  • v0.1.0
15 results

preparemoodleupload.py

Blame
  • Forked from IENT / exam-scan
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    api.js 544 B
    #!/usr/bin/env node
    
    const {existsSync} = require(`fs`);
    const {createRequire} = require(`module`);
    const {resolve} = require(`path`);
    
    const relPnpApiPath = "../../../../.pnp.cjs";
    
    const absPnpApiPath = resolve(__dirname, relPnpApiPath);
    const absRequire = createRequire(absPnpApiPath);
    
    if (existsSync(absPnpApiPath)) {
      if (!process.versions.pnp) {
        // Setup the environment to be able to require eslint
        require(absPnpApiPath).setup();
      }
    }
    
    // Defer to the real eslint your application uses
    module.exports = absRequire(`eslint`);