
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@castiron/eslint-config
Advanced tools
General eslint configuration for Cast Iron Coding projects
An ESLint Shareable Config for CIC projects
yarn add @castiron/eslint-config -D
For all the rules, add this to your eslint.config.js
file:
// eslint.config.js
import cicConfig from "@castiron/eslint-config";
export default [...cicConfig];
If you'd like to use only some of the rules, each config has a named export:
// Example: Vanilla js project with babel parser.
// eslint.config.js
import { baseConfig, jsConfig } from "@castiron/eslint-config";
export default [
{
parser: "@babel/eslint-parser",
parserOptions: {
sourceType: "module",
requireConfigFile: false,
babelOptions: {
plugins: [
"@babel/plugin-transform-react-jsx",
"@babel/plugin-proposal-class-properties",
],
},
},
}
baseConfig,
jsConfig,
];
// Example: Astro project without react.
// eslint.config.js
import { baseConfig, jsConfig, tsConfig } from "@castiron/eslint-config";
import eslintPluginAstro from "eslint-plugin-astro";
export default [
{
ignores: ["dist/", ".astro/"],
},
baseConfig,
jsConfig,
tsConfig,
...eslintPluginAstro.configs.recommended,
];
Add lint and fix scripts to package.json:
// package.json
{
"scripts": {
// ...,
"lint": "eslint .",
"fix": "eslint . --fix"
}
}
FAQs
General eslint configuration for Cast Iron Coding projects
The npm package @castiron/eslint-config receives a total of 8 weekly downloads. As such, @castiron/eslint-config popularity was classified as not popular.
We found that @castiron/eslint-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.