Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hjkcai/eslint-config-halo

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hjkcai/eslint-config-halo

The eslint config for halo team

  • 9.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-halo 支持几种不同类型的项目,通过在 .eslintrc.js 中声明继承不同的规则,即可在不同的项目中得到不同的效果。

下面列举了不同项目类型应该使用的配置,配置中的代码分别是 .eslintrc.js 的内容,和 package.json 中要添加的内容。

JavaScript

普通 JavaScript 项目
module.exports = {
  extends: '@hjkcai/eslint-config-halo/js'
};
{
  "scripts": {
    "lint": "eslint ."
  }
}
React + JavaScript 项目
module.exports = {
  extends: '@hjkcai/eslint-config-halo/js/react'
};
{
  "scripts": {
    "lint": "eslint . --ext .js,.jsx"
  }
}
Vue + JavaScript 项目
module.exports = {
  extends: '@hjkcai/eslint-config-halo/js/vue'
};
{
  "scripts": {
    "lint": "eslint . --ext .js,.jsx,.vue"
  }
}

TypeScript

普通 JavaScript 项目
module.exports = {
  extends: '@hjkcai/eslint-config-halo/ts'
};
{
  "scripts": {
    "lint": "eslint . --ext .js,.ts"
  }
}
React + TypeScript 项目
module.exports = {
  extends: '@hjkcai/eslint-config-halo/ts/react'
};
{
  "scripts": {
    "lint": "eslint . --ext .js,.jsx,.ts,.tsx"
  }
}
Vue + TypeScript 项目
module.exports = {
  extends: '@hjkcai/eslint-config-halo/ts/vue'
};
{
  "scripts": {
    "lint": "eslint . --ext .js,.jsx,.ts,.tsx,.vue"
  }
}

License

MIT

Keywords

FAQs

Package last updated on 26 Jul 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc