Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@antfu/eslint-config
Advanced tools
@antfu/eslint-config is a comprehensive ESLint configuration package designed to streamline the process of setting up linting for JavaScript and TypeScript projects. It includes a set of predefined rules and plugins that enforce code quality and consistency, making it easier to maintain and scale codebases.
Basic JavaScript Linting
This feature provides a basic set of linting rules for JavaScript projects. By extending the @antfu configuration, you get a well-rounded set of rules that enforce best practices and code quality.
{
"extends": "@antfu"
}
TypeScript Support
This feature extends the basic JavaScript linting to include TypeScript support. By specifying the TypeScript configuration file, you can ensure that your TypeScript code adheres to the same quality standards.
{
"extends": "@antfu",
"parserOptions": {
"project": "./tsconfig.json"
}
}
Vue.js Support
This feature adds support for linting Vue.js projects. By extending both the base and Vue-specific configurations, you can enforce consistent coding standards across your Vue components.
{
"extends": [
"@antfu",
"@antfu/eslint-config-vue"
]
}
Prettier Integration
This feature integrates Prettier with ESLint, allowing you to use Prettier for code formatting while still enforcing ESLint rules. This ensures that your code is not only correct but also consistently formatted.
{
"extends": [
"@antfu",
"@antfu/eslint-config-prettier"
]
}
eslint-config-airbnb is one of the most popular ESLint configurations. It provides a comprehensive set of rules based on Airbnb's JavaScript style guide. Compared to @antfu/eslint-config, it is more opinionated and widely adopted in the industry.
eslint-config-standard is another popular ESLint configuration that enforces JavaScript Standard Style. It is less opinionated than eslint-config-airbnb and focuses on simplicity and readability. It is a good alternative for those who prefer a more minimalistic approach.
eslint-config-prettier is designed to disable all ESLint rules that conflict with Prettier. It is often used in conjunction with other ESLint configurations to ensure that code formatting is handled by Prettier while ESLint focuses on code quality. This package is similar to the Prettier integration feature in @antfu/eslint-config.
FAQs
Anthony's ESLint config
The npm package @antfu/eslint-config receives a total of 0 weekly downloads. As such, @antfu/eslint-config popularity was classified as not popular.
We found that @antfu/eslint-config 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.