
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
efarm-configs
Advanced tools
npm install efarm-configs
We made those decisions based on the amount of users that e-farm.com get's and which browser and version they are using.
The eslint config is inside eslint/.
You will need to specify an relative path to the config file in your local .eslintrc.js or you can just use the resolver helper.
This resolver function takes three arguments:
declare function resoler(
// The directory name the .eslintrc.js is located in. Should always be __dirname.
dirname: string,
// The environment the config is for.
// Pass null for a universal eslint config which can be used on the server and the client.
env: 'client' | 'server' | null,
// Whether or not the project uses prettier.
// When true, it will use special configs so that eslint and prettier do not conflict.
prettier?: boolean,
): string;
Example .eslintrc.js:
const resolver = require('efarm-configs/eslint/resolver');
module.exports = {
extends: [resolver(__dirname, null, false)],
}
The Babel config file are located in babel/.
There is a babel/client.config.js which is designed for the client. It automatically compiles React and Flow and compiles to the minimum based on the targets.
Then there is a babel/server.config.js which is designed for the server. It also automatically compiles only as needed for your current node version and also compiles your flow types.
Additional plugins currently applied:
The webpack configurations for webpack are located in webpack/.
The dev.config.js and prod.config.js are both exporting a function which takes exactly two arguments.
The first argument is an options object. This argument is required.
const options = {
// Those path are from the cwd
src: 'src/client', // The client source folder
dist: 'dist/client', // The output folder
}
In the source folder there needs to be an index.js which will be the entry point for the javascript.
And there needs to be an index.html which will be the template for the webpack plugin.
Those files are required to exist.
The second argument is an optional webpack config which will be merged with the default configs.
Example:
const config = require('efarm-configs/webpack/dev.config');
module.exports = config({
src: 'src/client',
dist: 'dist/client',
});
The prettier config is in prettier.config.js.
You will need to enable prettier in the eslint config files as well. See [#config-resolver](Config Resolver).
The stylelint config is in stylelint.config.js.
FAQs
Eslint config for e-farm
We found that efarm-configs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.