0.0.0 • Published 9 years ago

@shinnn/eslintrc v0.0.0

Weekly downloads
3
License
-
Repository
github
Last release
9 years ago

@shinnn/eslintrc

Build Status

shinnn's ESLint config for both client-side and Node-based projects

Installation

Use npm.

npm install @shinnn/eslintrc

CLI

eslint --config node_modules/@shinnn/eslintrc/rc.json *.js

API

'use strict';

var config = require('@shinnn/eslintrc');
/* =>
  {
    envs: {
      browser: true,
      node: true,
      es6: true
    },
    ...
  }
*/

var CLIEngine = require('eslint').CLIEngine;

var cli = new CLIEngine(config);
cli.executeOnText('var foo=true;'); //=> {results: [ ... ], errorCount: 3, warningCount: 0}

License

Copyright (c) 2015 Shinnosuke Watanabe

Licensed under the MIT License.