Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@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
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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.