GitXplorerGitXplorer
G

sails-hook-eslint

public
1 stars
2 forks
4 issues

Commits

List of commits on branch master.
Unverified
0e3c91a234e8514313e33662620d0006836ec78d

Merge pull request #6 from pabloariasmora/master

GGlobegitter committed 8 years ago
Unverified
f67085def330f19595327a2107446ffa02478a9b

Updating Packages

committed 8 years ago
Unverified
abc8b6e2f3ca1baa0861dafd43ede3f4e5a9029d

Merge pull request #2 from Immuzov/master

GGlobegitter committed 9 years ago
Unverified
30495a503e5996bea0bd29d7f146c156cc1ae403

Bump eslint version.

committed 9 years ago
Unverified
e905dd3cbead34a2e5c88e007cfcadacad815683

Update README.md

GGlobegitter committed 10 years ago
Unverified
e9a1c191c90af921a68241dfca99bcc22f1760ae

Update README.md

GGlobegitter committed 10 years ago

README

The README file for this repository.

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

Make sure you have a .eslintrc in your root folder. Then just lift your app as normal, and enjoy the power of linting. For an example of an .eslintrc file see: https://github.com/artificialio/sane/blob/master/.eslintrc

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.

Parameter Type Details
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 [path.resolve(sails.config.appPath, 'api'), path.resolve(sails.config.appPath, 'config')].

That’s it!