Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@callstack/eslint-config

Package Overview
Dependencies
Maintainers
9
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@callstack/eslint-config

ESLint preset extending Airbnb, Flow, Prettier and Jest

  • 7.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10K
increased by121.05%
Maintainers
9
Weekly downloads
 
Created
Source

eslint-config-callstack

Greenkeeper badge

Callstack ESLint config utilizing Flow/TypeScript, Prettier, Jest, React and React Native.

Plugins and configs used:

Additionally, it sets these environments:

Default config:

{
  "env": {
    "browser": true,
    "es6": true,
    "node": true,
    "react-native/react-native": true
  }
}

Node config:

{
  "env": {
    "browser": true,
    "es6": true,
    "node": true
  }
}

Installation

yarn add --dev eslint @callstack/eslint-config

Note: We're using yarn to install deps. Feel free to change commands to use npm 3+ and npx if you like

Usage

Add to your ESLint config (.eslintrc, or eslintConfig field in package.json):

{
    "extends": "@callstack"
}

or

{
    "extends": "@callstack/eslint-config/node"
}

Example of extending the configuration

{
    "extends": "@callstack",
    "rules": {
        "global-require": 0,
        "prefer-destructuring": 0
    }
}

TypeScript

In order to use this config in TypeScript project make sure you have installed following dependencies:

Then when running ESLint add --ext '.js,.ts' (you might need also .jsx, .tsx) option, for example:

yarn eslint --ext '.js,.ts' ./src

Keywords

FAQs

Package last updated on 17 Jul 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