@shinnn/eslintrc-node
The ESLint config for shinnn's Node-based projects
Installation
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.