@shinnn/eslintrc-node

1.0.2 • Public • Published

@shinnn/eslintrc-node

Build Status

The ESLint config for shinnn's Node-based projects

Installation

Use npm.

npm install @shinnn/eslintrc-node

CLI

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

API

'use strict';

var config = require('@shinnn/eslintrc-node');
/* =>
  {
    envs: {
      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.

Package Sidebar

Install

npm i @shinnn/eslintrc-node

Weekly Downloads

7

Version

1.0.2

License

none

Last publish

Collaborators

  • shinnn