Skip to content

taskjs/task-eslint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Validate files with ESLint.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published