How to use standard-engine - 10 common examples

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 standard / semistandard / index.js View on Github external
// programmatic usage
var Linter = require('standard-engine').linter

var opts = require('./options.js')

module.exports = new Linter(opts)
github KidkArolis / healthier / index.js View on Github external
// programmatic usage
const Linter = require('standard-engine').linter

const opts = require('./options.js')

module.exports = new Linter(opts)
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)
github KidkArolis / healthier / bin / standard-engine.js View on Github external
function Cli(opts) {
  const Linter = require('standard-engine').linter
  const standard = new Linter(opts)

  opts = Object.assign(
    {
      cmd: 'standard-engine',
      tagline: 'JavaScript Custom Style',
      version: '0.0.0'
    },
    opts
  )

  const argv = minimist(process.argv.slice(2), {
    alias: {
      global: 'globals',
      plugin: 'plugins',
      env: 'envs',
      format: 'f',
github standard / standard / index.js View on Github external
const Linter = require('standard-engine').linter
const opts = require('./options')

module.exports = new Linter(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

71 / 100
Full package analysis

Popular standard-engine functions