@shinnn/eslintrc
v0.0.0
Published
shinnn's ESLint config for both client-side and Node-based projects
Downloads
25
Maintainers
Readme
@shinnn/eslintrc
shinnn's ESLint config for both client-side and Node-based projects
Installation
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.