1.0.1 • Published 4 years ago

eslint-config-sc v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

eslint-config-sc

This package provides ESLint rules as an extensible shared config.

Extends Airbnb's config.

Table of Contents

  1. Usage
  2. Contributing

Usage

eslint-config-sc

  1. Install the correct versions of each package, which are listed by the command:

    npm info "eslint-config-sc@latest" peerDependencies

    Linux/OSX users can simply run the following to install:

    (
      export PKG=eslint-config-sc;
      npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
    )

    Which produces and runs a command like:

      npm install --save-dev eslint-config-sc eslint@^#.#.# eslint-plugin-import@^#.#.#
  2. Extend the config in your eslintrc

    // .eslintrc.js
    module.exports = {
      extends: "sc",
    };

Contributing

You can make sure this module lints with itself using npm run lint.