
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.
@emanprague/eslint-config
Advanced tools
This package contains shared rules for ESlint with TypeScript and Prettier.
Inspired by https://dev.to/robertcoopercode/using-eslint-and-prettier-in-a-typescript-project-53jb
eslint-config v3 supports ESlint 8.
eslint-config v2 requires ESlint 7.
Use eslint-config v1 for ESlint 6 + TSlint.
Install ESlint:
yarn add eslint prettier @emanprague/eslint-config -D
Update config files as follows:
.eslintrc.js
module.exports = {
extends: [
"@emanprague/eslint-config/eslint-default"
],
settings: {
react: {
version: "detect",
},
},
env: {
browser: true,
},
};
.prettierrc.js
module.exports = require("@emanprague/eslint-config/prettier-config");
Note that instead of creating the .prettierrc.js
file, you can just add the following row to your package.json
file.
"prettier": "@emanprague/eslint-config/prettier-config",
And you should be good to go with:
eslint \"./src/**/*.{ts,tsx}\" --cache
How to release:
FAQs
ESlint and prettier configurations
The npm package @emanprague/eslint-config receives a total of 184 weekly downloads. As such, @emanprague/eslint-config popularity was classified as not popular.
We found that @emanprague/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.