Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.