Socket
Socket
Sign inDemoInstall

eslint-config-icelandair

Package Overview
Dependencies
282
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-config-icelandair

Icelandair's base JS ESLint config


Version published
Maintainers
2
Install size
92.8 kB
Created

Readme

Source

eslint-config-icelandair

npm version

This package provides Icelandair's base JS .eslintrc as an extensible shared config.

Installation

Assuming you already have a valid package.json:

npm install --save-dev eslint-config-icelandair eslint eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react

Will add the the full package as a dev dependency to your project. At which point you can use it by adding an .eslintrc file to your project root directory.

{
  "parser": "babel-eslint",
  "extends": [ "icelandair" ]
}

Additionally, if you intend to use the babel-eslint parser as shown here, you need to install that as well:

npm install --save-dev babel-eslint

Usage

We provide three options for your usage.

eslint-config-icelandair

Our default export contains all of our ESLint rules, including ECMAScript 6+ and React rules. If you are writing a React application or component your .eslintrc will look something like this:

{
  "parser": "babel-eslint",
  "extends": [ "icelandair" ]
  "env": { "browser": true },
}

eslint-config-icelandair/basic

When you just want to write some basic JS code and don't want/need the React rules. Allows safely skipping install of the peer dependencies eslint-plugin-jsx-a11y and eslint-plugin-react.

{
  "extends": [ "icelandair/basic" ]
}

eslint-config-icelandair/react

React rules only. You may reference these directly, but there may not be much point.

{
  "extends": [ "icelandair/react" ]
}

Keywords

FAQs

Last updated on 12 Mar 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc