eslint-config-spydertrap

0.0.3 • Public • Published

eslint-config-spydertrap

npm version

This package provides Spyder Trap's .eslintrc as an extensible shared config.

Extends Airbnb's config. The main differences being:

  • 18.1 Use soft tabs (space character) set to 2 4 spaces.
  • Environment declarations

Table of Contents

  1. Usage
  2. Contributing

Usage

eslint-config-spydertrap

Our default export contains all of our ESLint rules, including ECMAScript 6+. It requires eslint and eslint-plugin-import.

  1. Install the correct versions of each package, which are listed by the command:
npm info "eslint-config-spydertrap@latest" peerDependencies

Linux/OSX users can simply run

(
  export PKG=eslint-config-spydertrap;
  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-spydertrap eslint@^#.#.# eslint-plugin-import@^#.#.#
  1. Add "extends": "spydertrap" to your .eslintrc

eslint-config-spydertrap/es5

TODO

Contributing

Inquire about rule modification with a Lead Developer.

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

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-spydertrap

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • allysonbeckers
  • spydertrap