@shinnn/eslintrc

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

Usage no npm install needed!

<script type="module">
  import shinnnEslintrc from 'https://cdn.skypack.dev/@shinnn/eslintrc';
</script>

README

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