
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
eslint-plugin-flowtype-errors
Advanced tools
NOTE: This demo is using Atom and the packages linter
, linter-eslint
, language-babel
This guide assumes that you have installed eslint, babel, babel-plugin-transform-flow-strip-types and configured flow. Check out the from-scratch guide for the full guide on getting started.
⚠️ Make sure the 64-bit version of your texteditor/IDE. For atom, see this comment
Step 1. Install
npm install --save-dev eslint-plugin-flowtype-errors
Step 2. Configure
Add this line to the 'rules' section of your .eslintrc
"flowtype-errors/show-errors": 2
Add this line to the 'plugins' section of your .eslintrc
"flowtype-errors"
Add the @flow
pragma to files that you want to lint
Also make sure that your .flowconfig
is in the root of your project directory
/**
* @flow
*/
Step 3. Settings (optional)
Add this line to the 'settings' section of your .eslintrc
if your .flowconfig
file is located in a different folder than the execution path of eslint.
"settings": {
"flowtype-errors": {
"flowDir": "./myDir"
}
},
Run eslint
and and you're all set!
Flow is supported on all OS's except Windows 32bit. Add this line to appveyor to make tests run properly.
apm install linter linter-eslint language-babel
http://eslint.org/docs/user-guide/integrations#editors
v3.2.1
FAQs
Retrieve Flow errors as ESLint errors.
We found that eslint-plugin-flowtype-errors demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.