
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@hjkcai/eslint-config-halo
Advanced tools
本规则是我在 halo 团队发起的,多年前端编码的规则沉淀
首先安装 ESLint 和规则:
npm install -D eslint @hjkcai/eslint-config-halo
在你的项目的根目录下创建一个 .eslintrc.js
文件,根据你的项目类型,复制下面的代码到该文件中。同时下面也提供了参考的 package.json
scripts 配置,可以自行加入到已有的项目中去。
module.exports = {
extends: '@hjkcai/eslint-config-halo/js'
};
{
"scripts": {
"lint": "eslint ."
}
}
module.exports = {
extends: '@hjkcai/eslint-config-halo/js/react'
};
{
"scripts": {
"lint": "eslint . --ext .js,.jsx"
}
}
module.exports = {
extends: '@hjkcai/eslint-config-halo/ts'
};
{
"scripts": {
"lint": "eslint . --ext .js,.ts"
}
}
module.exports = {
extends: '@hjkcai/eslint-config-halo/ts/react'
};
{
"scripts": {
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
}
}
对于某些需要非常认真地对待的项目,不能马虎的那种,推荐使用 TypeScript 严格模式配置。
module.exports = {
extends: '@hjkcai/eslint-config-halo/ts-strict'
};
{
"scripts": {
"lint": "eslint . --ext .js,.ts"
}
}
module.exports = {
extends: '@hjkcai/eslint-config-halo/ts-strict/react'
};
{
"scripts": {
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
}
}
MIT
FAQs
The eslint config for halo team
The npm package @hjkcai/eslint-config-halo receives a total of 2 weekly downloads. As such, @hjkcai/eslint-config-halo popularity was classified as not popular.
We found that @hjkcai/eslint-config-halo demonstrated a not healthy version release cadence and project activity because the last version was released 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.