How to use `require` on a linter?


#1

I am trying to see if I can build a linter that utilizes a linter that is registered using meteor npm install rather than Npm.depends

Something like this

Plugin.registerLinter({
  extensions: ["js"]
}, function () {
  console.log(require('eslint'))
});

I have a package.js like this so it loads the modules giving me require

/* globals Package */
Package.describe({
  name: 'trajano:linters',
  version: '1.0.0',
  summary: 'This runs the known linters.',
  documentation: 'README.md'
})

Package.registerBuildPlugin({
  name: 'linters',
  sources: [
    'linters.js'
  ],
  use: ['modules', 'underscore']
})

Package.onUse(function (api) {
  api.use('isobuild:linter-plugin@1.0.0')
})

Is it even possible with the current API?