Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@samuelmeuli/eslint-config
Advanced tools
These are my personal configurations for ESLint. They are based on Airbnb's ESLint configurations.
This repository contains ESLint configurations for the following setups:
They are designed to be used together with Prettier.
Install the required packages:
JavaScript:
yarn add --dev @samuelmeuli/eslint-config \
eslint-config-prettier \
eslint-plugin-simple-import-sort \
&& npx install-peerdeps --dev eslint-config-airbnb-base
JavaScript with React:
yarn add --dev @samuelmeuli/eslint-config \
eslint-config-prettier \
eslint-plugin-simple-import-sort \
&& npx install-peerdeps --dev eslint-config-airbnb
TypeScript:
yarn add --dev @samuelmeuli/eslint-config \
eslint-config-prettier \
@typescript-eslint/eslint-plugin \
@typescript-eslint/parser \
eslint-plugin-simple-import-sort \
&& npx install-peerdeps --dev eslint-config-airbnb-base
TypeScript with React:
yarn add --dev @samuelmeuli/eslint-config \
eslint-config-prettier \
@typescript-eslint/eslint-plugin \
@typescript-eslint/parser \
eslint-plugin-simple-import-sort \
&& npx install-peerdeps --dev eslint-config-airbnb
Create the following entry in your package.json
file:
JavaScript:
{
"eslintConfig": {
"root": true,
"extends": ["@samuelmeuli/eslint-config"]
}
}
JavaScript with React:
{
"eslintConfig": {
"root": true,
"extends": ["@samuelmeuli/eslint-config/react"]
}
}
TypeScript:
{
"eslintConfig": {
"root": true,
"extends": ["@samuelmeuli/eslint-config/typescript"]
}
}
TypeScript with React:
{
"eslintConfig": {
"root": true,
"extends": ["@samuelmeuli/eslint-config/typescript-react"]
}
}
Add a linting script to your package.json
file:
JavaScript:
{
"scripts": {
"lint": "eslint --fix --max-warnings 0 ."
}
}
JavaScript with React:
{
"scripts": {
"lint": "eslint --ext .js,.jsx --fix --max-warnings 0 ."
}
}
TypeScript:
{
"scripts": {
"lint": "eslint --ext .ts --fix --max-warnings 0 ."
}
}
TypeScript with React:
{
"scripts": {
"lint": "eslint --ext .ts,.tsx --fix --max-warnings 0 ."
}
}
FAQs
My ESLint configuration
We found that @samuelmeuli/eslint-config 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
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.