Skip to content
Snippets Groups Projects
Select Git revision
  • feature/mchck
  • master default
  • wip/sdcard_sdio
  • feature/stm32_peripheral_view
  • wip/sdcard
  • develop
  • fix/stm32l4_i2c
  • fix/release_tests
  • feature/stm32l4_adc_support
  • wip/typo
  • feature/stm32l4_support_2017q1
  • feature/rtc_ds3231
  • feature/stm32_f4_f7_breakout
  • feature/stm32l4_support_2017
  • feature/stm32f4_ethernet
  • feature/travisci_armgcc
  • feature/mcp2515_multislave
  • feature/stm32l476_support
  • feature/sdl-fix
  • feature/display_n5110
  • feature/enc28j60
  • phd_hat
  • regression02
  • regression01
  • 2013
  • 2012
26 results

SConscript

Blame
  • 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`);