New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-taro

Package Overview
Dependencies
Maintainers
0
Versions
936
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-taro

Taro specific linting rules for ESLint

  • 4.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2K
decreased by-14.66%
Maintainers
0
Weekly downloads
 
Created
Source

eslint-config-taro

Taro ESLint config,只有当 ESLint 规则全部都通过时,Taro 小程序端才可能正常运行。

安装/设置

通过 NPM 安装:

$ npm install eslint @babel/eslint-parser eslint-config-taro eslint-plugin-taro eslint-plugin-react eslint-plugin-import --save-dev

.eslintrc 中设置:

{
  "extends": [
    "taro"
  ]
}

或者使用 taro-cli 创建模板自动设置。

规则

插件包含了四个方面的规则:

  1. 自定义规则 (via eslint-plugin-taro)
  2. 变量定义规则
  3. import 规则 (via eslint-plugin-import)
  4. JSX 规则 (via eslint-plugin-react)

Keywords

FAQs

Package last updated on 13 Jan 2025

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