Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 3, 2024 via pnpm

eslint-plugin-flowtype 5.3.1

Flowtype linting rules for ESLint.
Package summary
Share
0
issues
6
licenses
84
MIT
16
ISC
8
BSD-2-Clause
10
other licenses
BSD-3-Clause
5
Apache-2.0
4
(MIT OR CC0-1.0)
1
Package created
2 Jul 2015
Version published
24 Feb 2021
Maintainers
1
Total deps
118
Direct deps
3
License
BSD-3-Clause

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
84 Packages, Including:
@babel/code-frame@7.12.11
@babel/helper-validator-identifier@7.24.5
@babel/highlight@7.24.5
@eslint/eslintrc@0.4.3
acorn-jsx@5.3.2
acorn@7.4.1
ajv@6.12.6
ajv@8.13.0
ansi-colors@4.1.3
ansi-regex@5.0.1
ansi-styles@3.2.1
ansi-styles@4.3.0
argparse@1.0.10
astral-regex@2.0.0
balanced-match@1.0.2
brace-expansion@1.1.11
callsites@3.1.0
chalk@2.4.2
chalk@4.1.2
color-convert@1.9.3
color-convert@2.0.1
color-name@1.1.3
color-name@1.1.4
concat-map@0.0.1
cross-spawn@7.0.3
debug@4.3.4
deep-is@0.1.4
emoji-regex@8.0.0
enquirer@2.4.1
escape-string-regexp@1.0.5
escape-string-regexp@4.0.0
eslint-utils@2.1.0
eslint@7.32.0
fast-deep-equal@3.1.3
fast-json-stable-stringify@2.1.0
fast-levenshtein@2.0.6
file-entry-cache@6.0.1
flat-cache@3.2.0
functional-red-black-tree@1.0.1
globals@13.24.0
has-flag@3.0.0
has-flag@4.0.0
ignore@4.0.6
import-fresh@3.3.0
imurmurhash@0.1.4
is-extglob@2.1.1
is-fullwidth-code-point@3.0.0
is-glob@4.0.3
js-tokens@4.0.0
js-yaml@3.14.1

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
16 Packages, Including:
flatted@3.3.1
fs.realpath@1.0.0
glob-parent@5.1.2
glob@7.2.3
inflight@1.0.6
inherits@2.0.4
isexe@2.0.0
lru-cache@6.0.0
minimatch@3.1.2
once@1.4.0
picocolors@1.0.0
rimraf@3.0.2
semver@7.6.0
which@2.0.2
wrappy@1.0.2
yallist@4.0.0

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
8 Packages, Including:
eslint-scope@5.1.1
espree@7.3.1
esprima@4.0.1
esrecurse@4.3.0
estraverse@4.3.0
estraverse@5.3.0
esutils@2.0.3
uri-js@4.4.1

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
5 Packages, Including:
@humanwhocodes/object-schema@1.2.1
eslint-plugin-flowtype@5.3.1
esquery@1.5.0
sprintf-js@1.0.3
table@6.8.2

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
4 Packages, Including:
@humanwhocodes/config-array@0.5.0
doctrine@3.0.0
eslint-visitor-keys@1.3.0
eslint-visitor-keys@2.1.0

(MIT OR CC0-1.0)

Public Domain
1 Packages, Including:
type-fest@0.20.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

3
All Dependencies CSV
ⓘ This is a list of eslint-plugin-flowtype 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
eslint7.32.0656.64 kBMIT
prod peer
lodash4.17.21311.49 kBMIT
prod
string-natural-compare3.0.14 kBMIT
prod

Visualizations

Frequently Asked Questions

What does eslint-plugin-flowtype do?

ESLint-plugin-flowtype is an extension for ESLint that enforces static type checking using Facebook's Flow. It equipped with various Flow-specific linting rules that encourage better type annotation style and practices when developing JavaScript applications.

How do you use eslint-plugin-flowtype?

Using eslint-plugin-flowtype is as simple as installing it along with ESLint and the Babel-eslint parser, then setting them up in your ESLint configuration.

Installation can be done using npm as follows:

npm install eslint --save-dev
npm install @babel/eslint-parser --save-dev
npm install eslint-plugin-flowtype --save-dev

After installation, you need to set up your ESLint configuration file, .eslintrc:

  1. Set parser property to @babel/eslint-parser.
  2. Add plugins section and specify eslint-plugin-flowtype as a plugin.
  3. Enable the rules you want to enforce.

Here’s an example of .eslintrc setup:

{
  "parser": "@babel/eslint-parser",
  "plugins": [
    "flowtype"
  ],
  "rules": {
    "flowtype/boolean-style": [
      2,
      "boolean"
    ],
    "flowtype/define-flow-type": 1,
    // ...more rules
  },
  "settings": {
    "flowtype": {
      "onlyFilesWithFlowAnnotation": false
    }
  }
}

In this setup, the flowtype/boolean-style rule is set to enforce the use of boolean instead of bool, and the flowtype/define-flow-type rule is set to treat Flow type identifiers as defined, among other rules.

You can also extend the plugin's recommended configuration:

{
  "extends": [
    "plugin:flowtype/recommended"
  ],
  "plugins": [
    "flowtype"
  ]
}

Remember to annotate your JavaScript files with @flow to apply the Flow checking.

Where are the eslint-plugin-flowtype docs?

The detailed documentation for eslint-plugin-flowtype is located in the GitHub repository for the package. It includes specific details about each rule and configurations options available, along with examples for better understanding. Please refer to this guide to learn about installing, configuring and effectively utilizing the eslint-plugin-flowtype for enforcing Flow type checking in your JavaScript application.