Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@mangoweb/eslint-config-ts
Advanced tools
@mangoweb/eslint-config-ts
ESLint configuration using Prettier designed for TS.
$ npm install @mangoweb/eslint-config-ts --save-dev
$ npm install @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-prettier eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks prettier --save-dev
$ npm install @mangoweb/prettier-config --save-dev
⚠️ You might want to also fix the package version so that any potential future backwards incompatibilities don't break your build. This package is generally intended for live development with the occasional BC break. Should that affect your application because you failed to fix the version, that's on you.
.prettierrc.js
file in your project root:
module.exports = {
...require("@mangoweb/prettier-config"), // Or something else
// Add any project-specific overrides
// E.g. semi: false
}
.eslintrc.js
in your project root:
module.exports = {
extends: [
'@mangoweb/eslint-config-ts',
]
}
Optionally, also add these to your package.json
:
{
"scripts": {
"eslint:lint": "eslint \"src/**/*.{ts,tsx}\" ",
"eslint:fix": "eslint --fix \"src/**/*.{ts,tsx}\" "
}
}
That's it!
FAQs
ESLint configuration using Prettier designed for TS.
We found that @mangoweb/eslint-config-ts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.