Socket
Socket
Sign inDemoInstall

eslint-config-skyscanner

Package Overview
Dependencies
Maintainers
10
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-skyscanner

Skyscanner's ESLint config.


Version published
Weekly downloads
21
increased by162.5%
Maintainers
10
Weekly downloads
 
Created
Source

eslint-config-skyscanner

Build Status Greenkeeper badge

This package includes the shareable ESLint configuration used by Skyscanner. It requires eslint, babel-eslint, eslint-config-airbnb, eslint-plugin-import, eslint-plugin-react, eslint-plugin-jsx-a11y and eslint-plugin-backpack.

Usage

  1. Ensure packages are installed with correct version numbers by running:

    npx install-peerdeps --dev eslint-config-skyscanner
    

    If using npm < 5, Linux/OSX users can run

    (
      export PKG=eslint-config-skyscanner;
      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-skyscanner eslint@^#.#.# babel-eslint@^#.#.# eslint-config-airbnb@^#.#.# eslint-plugin-jsx-a11y@^#.#.# eslint-plugin-import@^#.#.# eslint-plugin-react@^#.#.# eslint-plugin-backpack@^#.#.#
    

    If using npm < 5, Windows users can either install all the peer dependencies manually, or use the install-peerdeps cli tool.

    npm install -g install-peerdeps
    install-peerdeps --dev eslint-config-skyscanner
    

    The cli will produce and run a command like:

    npm install --save-dev eslint-config-skyscanner eslint@^#.#.# babel-eslint@^#.#.# eslint-config-airbnb@^#.#.# eslint-plugin-jsx-a11y@^#.#.# eslint-plugin-import@^#.#.# eslint-plugin-react@^#.#.# eslint-plugin-backpack@^#.#.#
    
  2. Add "extends": "skyscanner" to your .eslintrc

Keywords

FAQs

Package last updated on 25 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc