
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
@labeg/code-style
Advanced tools
Code styles rules for difference linters, for create best code quality
Comprehensive ESLint configuration for TypeScript and React projects with strict code quality rules.
This configuration includes and configures the following ESLint plugins:
Install the package as a dev dependency:
npm install -D @labeg/code-style
Create or update your eslint.config.js:
import codeStyle from "@labeg/code-style";
export default [
...codeStyle,
{
// Your custom overrides
rules: {
// Override specific rules here
}
}
];
import nextVitals from "eslint-config-next/core-web-vitals";
import codeStyle from "@labeg/code-style";
export default [
...nextVitals,
...codeStyle,
{
rules: {
// Next.js specific overrides
"react/react-in-jsx-scope": "off"
}
}
];
The configuration automatically works with TypeScript files (.ts, .tsx). Make sure you have typescript installed:
npm install -D typescript
Lines should always end with an operator or semicolon to make it clear whether the statement continues. This saves reading time and prevents execution errors.
// Bad - unclear if statement continues
let sample = sample.sample.sample
+ sample.sample.sample;
// Good - operator at end shows continuation
let sample = sample.sample.sample +
sample.sample.sample;
Even for single-line statements, always use braces. This prevents bugs during refactoring and improves code clarity.
// Bad
if (n > 10) alert("Bad");
// Good
if (n > 10) {
alert("Good");
}
Use double quotes for consistency with other languages, and template literals for string interpolation.
const message = "rolls";
const count = 5;
// Bad
const data = 'Sending "grandma" ' + count * 5 + ' ' + message + '.';
// Good
const data = `Sending "grandma" ${count * 5} ${message}.`;
Optimal line length is 120 characters for readability across different monitors. Use 4-space indentation for clear nesting levels.
For security concerns, please see our Security Policy.
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
MIT © Eugene Labutin
FAQs
Code styles rules for difference linters, for create best code quality
The npm package @labeg/code-style receives a total of 98 weekly downloads. As such, @labeg/code-style popularity was classified as not popular.
We found that @labeg/code-style demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.