
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@castiron/eslint-config
Advanced tools
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
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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.