JSPM

  • Created
  • Published
  • Downloads 627
  • Score
    100M100P100Q97081F
  • License ISC

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

Package Exports

  • @shinnn/eslint-config

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@shinnn/eslint-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@shinnn/eslint-config

npm version Build Status

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

Features

Installation

Install eslint and this package with npm.

npm install --dev eslint @shinnn/eslint-config

Then add the following configuration to your project's package.json.

"eslintConfig": {
  "extends": "@shinnn"
}

CLI

# No need to explicitly add `--cache`, `--cache-location`, `--ext`, `--fix` and `--format` flags
$ eslint .

API

const {CLIEngine} = require('eslint');

const cli = new CLIEngine({
  // For programmatic usage via API and build tool integrations like webpack eslint-loader,
  // options for example `fix: true` and `cache: true` are still needed to set them explicitly.
});
cli.executeOnText('var foo=true;'); //=> {results: [ ... ], errorCount: ... }

License

ISC License © 2017 - 2018 Shinnosuke Watanabe