0.1.2 • Published 10 years ago

task-eslint v0.1.2

Weekly downloads
2
License
-
Repository
github
Last release
10 years ago

task-eslint

Validate files with ESLint.

The "eslint" task

Usage Examples

var eslint = new (require('task-eslint'))
eslint.run(inputs, options, logger)

Options

options.config

Type: path

Path to your ESLint config file (eslint.json).

options.rulesdir

Type: directory Default: built-in rules directory

Paths to directories with custom rules. Your custom rules will be used in addition to the built-in ones.

Recommended read: Working with Rules

options.format

Type: select Default: 'stylish' Options: ['stylish', 'compact', 'jslint-xml', 'junit', 'tap']

Use a specific output format.

options.failOnError

Type: boolean Default: 'true'

Fail when eslint error is found.

Release History

  • 2014-10-11 0.1.2 Add failOnError option
  • 2014-10-11 0.1.1 Upgrade eslint to 0.8.2
  • 2014-06-27 0.1.0 Initial release.

License

Copyright (c) 2014 Yuanyan Cao. Licensed under the MIT license.

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago