This package has been deprecated

Author message:

My apologies. This package is not worth the maintenance.

lint-files

1.0.0 • Public • Published

Build Status Standard - JavaScript Style Guide

lint-files

Convenience wrapper for ESLint’s CLIEngine.prototype.executeOnFiles()

Instead of

const { CLIEngine } = require('eslint')
const cli = new CLIEngine({ some: 'options' })
cli.executeOnFiles(['some', 'files'])

Do

const lintFiles = require('lint-files')
lintFiles({ some: 'options' }, ['some', 'files'])

Features

  • one line less
  • no new
  • tested better than patience

API

lintFiles(options, files)

  • options:
    will be passed to the CLIEngine constructor (ESLint docs)
  • files:
    will be passed to executeOnFiles (ESLint docs)

Returns what executeOnFiles returns.

Package Sidebar

Install

npm i lint-files

Weekly Downloads

2

Version

1.0.0

License

ISC

Last publish

Collaborators

  • mightyiam