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

eslint-config-flowtype-essential

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-flowtype-essential

Essential rules for eslint-plugin-flowtype

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
119
increased by101.69%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-flowtype-essential

wemake.services Build Status

Shareable configuration for eslint-plugin-flowtype.

The main idea of this configuration is to be:

  1. Strict about syntax
  2. Permissive about types
  3. Opened for further extensions

Installation

npm install --save-dev eslint-config-flowtype-essential

Then, modify your eslint configuration:

{
  "extends": [
    "flowtype-essential"
  ]
}

Done! Later you can modify your configuration to include any extra rules you need.

Code example

This code is considered valid (and beautiful):

type Client<T> = {
  name: string,
  surname: string,
  age: number | string,
  isRegular: boolean,
  reference: T,
  related: Array<T>,
  preferences: Array<string | Promise<string>>
}

function greetClient (client: Client<string>): string {
  return `Hi, ${client.name}-{$client.reference}`
}

License

MIT.

Keywords

FAQs

Package last updated on 08 Sep 2018

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