@shinnn/eslintrc
shinnn's ESLint config for both client-side and Node-based projects
Last updated 5 years ago by shinnn .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @shinnn/eslintrc 
SYNC missed versions from official npm registry.

@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.

Current Tags

  • 0.0.0                                ...           latest (5 years ago)

1 Versions

  • 0.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 1
Dependencies (1)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |