Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.