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 Apr 25, 2024 via pnpm

eslint-plugin-flowtype 8.0.3

Flowtype linting rules for ESLint.
Package summary
Share
2
issues
1
high severity
license
1
1
low severity
license
1
8
licenses
122
MIT
19
ISC
6
BSD-2-Clause
11
other licenses
Apache-2.0
5
BSD-3-Clause
3
Python-2.0
1
CC-BY-4.0
1
+ 1 more
Package created
2 Jul 2015
Version published
29 Oct 2021
Maintainers
1
Total deps
158
Direct deps
5
License
BSD-3-Clause

Issues

2

1 high severity issue

high
Recommendation: Read and validate the license terms
via: @babel/plugin-syntax-flow@7.24.1 & others
Collapse
Expand

1 low severity issue

low
Recommendation: Read and validate the license terms
via: @babel/plugin-syntax-flow@7.24.1 & others
Collapse
Expand

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
122 Packages, Including:
@aashutoshrathi/word-wrap@1.2.6
@babel/code-frame@7.24.2
@babel/compat-data@7.24.4
@babel/core@7.24.4
@babel/generator@7.24.4
@babel/helper-annotate-as-pure@7.22.5
@babel/helper-compilation-targets@7.23.6
@babel/helper-environment-visitor@7.22.20
@babel/helper-function-name@7.23.0
@babel/helper-hoist-variables@7.22.5
@babel/helper-module-imports@7.24.3
@babel/helper-module-transforms@7.23.3
@babel/helper-plugin-utils@7.24.0
@babel/helper-simple-access@7.22.5
@babel/helper-split-export-declaration@7.22.6
@babel/helper-string-parser@7.24.1
@babel/helper-validator-identifier@7.22.20
@babel/helper-validator-option@7.23.5
@babel/helpers@7.24.4
@babel/highlight@7.24.2
@babel/parser@7.24.4
@babel/plugin-syntax-flow@7.24.1
@babel/plugin-syntax-jsx@7.24.1
@babel/plugin-transform-react-jsx@7.23.4
@babel/template@7.24.0
@babel/traverse@7.24.1
@babel/types@7.24.0
@eslint-community/eslint-utils@4.4.0
@eslint-community/regexpp@4.10.0
@eslint/eslintrc@2.1.4
@eslint/js@8.57.0
@jridgewell/gen-mapping@0.3.5
@jridgewell/resolve-uri@3.1.2
@jridgewell/set-array@1.2.1
@jridgewell/sourcemap-codec@1.4.15
@jridgewell/trace-mapping@0.3.25
@nodelib/fs.scandir@2.1.5
@nodelib/fs.stat@2.0.5
@nodelib/fs.walk@1.2.8
acorn-jsx@5.3.2
acorn@8.11.3
ajv@6.12.6
ansi-regex@5.0.1
ansi-styles@3.2.1
ansi-styles@4.3.0
balanced-match@1.0.2
brace-expansion@1.1.11
browserslist@4.23.0
callsites@3.1.0
chalk@2.4.2

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
19 Packages, Including:
@ungap/structured-clone@1.2.0
electron-to-chromium@1.4.748
fastq@1.17.1
flatted@3.3.1
fs.realpath@1.0.0
glob-parent@6.0.2
glob@7.2.3
inflight@1.0.6
inherits@2.0.4
isexe@2.0.0
lru-cache@5.1.1
minimatch@3.1.2
once@1.4.0
picocolors@1.0.0
rimraf@3.0.2
semver@6.3.1
which@2.0.2
wrappy@1.0.2
yallist@3.1.1

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
6 Packages, Including:
eslint-scope@7.2.2
espree@9.6.1
esrecurse@4.3.0
estraverse@5.3.0
esutils@2.0.3
uri-js@4.4.1

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
5 Packages, Including:
@ampproject/remapping@2.3.0
@humanwhocodes/config-array@0.11.14
@humanwhocodes/module-importer@1.0.1
doctrine@3.0.0
eslint-visitor-keys@3.4.3

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
3 Packages, Including:
@humanwhocodes/object-schema@2.0.3
eslint-plugin-flowtype@8.0.3
esquery@1.5.0

Python 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
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
state-changes
1 Packages, Including:
argparse@2.0.1

Creative Commons Attribution 4.0 International

Uncategorized
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
caniuse-lite@1.0.30001612

(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

5
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
@babel/plugin-syntax-flow7.24.15.3 kBMIT
prod peer
1
1
@babel/plugin-transform-react-jsx7.23.419.11 kBMIT
prod peer
1
1
eslint8.57.02.9 MBMIT
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.