1.0.3 • Published 9 years ago

sails-hook-eslint v1.0.3

Weekly downloads
41
License
MIT
Repository
github
Last release
9 years ago

sails-hook-eslint

npm version Dependency Status

Needs at least Sails version 0.11.0 to work

Sails JS hook to activate ESLint for your whole sails app.

Installation

npm install sails-hook-eslint

Usage

Just lift your app as normal, and enjoy linting of your app. To see how to create a .eslintrc and what is possible, see: http://eslint.org/

Configuration

By default, configuration lives in sails.config.eslint. The configuration key (eslint) can be changed by setting sails.config.hooks['sails-hook-eslint'].configKey.

ParameterTypeDetails
check((boolean))Whether or not sails should lint your JS code. Defaults to true.
formatter((string))Which formatter to use. Defaults to 'stylish'.
patterns((array))Which folders or glob patterns to lint. Defaults to 'api', 'config'.

Thats it!