How to use the standard-engine.cli function in standard-engine

To help you get started, we’ve selected a few standard-engine examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github root-systems / dogstack / commands / lint.js View on Github external
handler: argv => {
    const lintOptions = require('standard/options')
    const lint = require('standard-engine').cli

    const { cwd } = argv
    // remove sub-command 'lint' from args
    process.argv.splice(2, 1)
    lint(assign({ cwd }, lintOptions))
  }
}
github zooniverse / front-end-monorepo / packages / tools-standard / bin / cmd.js View on Github external
#!/usr/bin/env node

if (process.version.match(/v(\d+)\./)[1] < 4) {
  console.error('standardx: Node v4 or greater is required. `standardx` did not run.')
} else {
  var opts = require('../options')
  require('standard-engine').cli(opts)
}
github standard / standard / bin / cmd.js View on Github external
#!/usr/bin/env node

var match = process.version.match(/v(\d+)\.(\d+)/)
var major = parseInt(match[1], 10)
var minor = parseInt(match[2], 10)

if (major >= 9 || (major === 8 && minor >= 6)) {
  require('standard-engine').cli(require('../options'))
} else {
  console.error('standard: Node 8 or greater is required. `standard` did not run.')
}
github root-systems / catstack / cli / command / lint.js View on Github external
command: (args) => {
      const lintOptions = require('standard/options')
      const lint = require('standard-engine').cli

      const { cwd } = api.config.all()
      process.argv.splice(2, 1)
      lint(assign({ cwd }, lintOptions))
    }
  }))
github standard / semistandard / bin / cmd.js View on Github external
#!/usr/bin/env node

var opts = require('../options.js')
require('standard-engine').cli(opts)
github django-stars / frontend-skeleton / linter.js View on Github external
const path = require('path')
const pkg = require('./package.json')

const opts = {
  version: pkg.version,
  homepage: pkg.homepage,
  bugs: pkg.bugs.url,
  eslint: eslint,
  cmd: 'linter',
  eslintConfig: {
    configFile: path.join(__dirname, '.eslintrc.json'),
  },
  cwd: '',
}

require('standard-engine').cli(opts)

standard-engine

Wrap your standards in a tortilla and cover it in special sauce.

MIT
Latest version published 1 year ago

Package Health Score

63 / 100
Full package analysis

Popular standard-engine functions