
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
eslint-config-lob
Advanced tools
Shareable ESLint configuration for Lob repositories
eslint
and this module:npm i eslint eslint-config-lob --save-dev
.eslintrc
file in the root of your project with the following object:{
extends: "eslint-config-lob"
}
This will use the rules in eslint-config-lob's index.js
. You can access rules in files other than eslint-config-lob's index.js
via:
{
extends: "eslint-config-lob/migrations"
}
.eslintignore
file to specify files or directories that the linter should ignore. By default, eslint ignores the node_modules
directory.lint
script in the package.json to:{
"scripts": {
"lint": "eslint ."
}
}
This will lint every .js
file in your project.
Modifying or adding rules.
index.js
file.index.js
and add your overrides. See migrations.js
for an example. If you're creating a file like this, its rules should be reusable and not a one-off. For example, you could create a file for angular rules. To make a one-off change, do so in your project's .eslintrc
.FAQs
Shareable ESLint config for Lob repositories
We found that eslint-config-lob demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 45 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.