Socket
Socket
Sign inDemoInstall

@applint/eslint-config

Package Overview
Dependencies
Maintainers
2
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applint/eslint-config

阿里巴巴大淘宝前端 ESLint 可共享配置。


Version published
Weekly downloads
129
decreased by-9.15%
Maintainers
2
Weekly downloads
 
Created
Source

@applint/eslint-config

遵循 阿里巴巴大淘宝前端 JavaScript、TypeScript、React 编码规范的 ESLint 可共享配置。

快速开始

安装

# 方式一
npx install-peerdeps --dev @applint/eslint-config

# 方式二
npm install --save-dev @applint/eslint-config eslint @typescript-eslint/eslint-plugin eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-jsx-plus eslint-plugin-react eslint-plugin-react-hooks

使用

创建 .eslintrc.js 并加入以下配置:

// .eslintrc.js
module.exports = {
  extends: [
    '@applint/eslint-config'                      // JS 项目
    // '@applint/eslint-config/typescript'        // TS 项目
    // '@applint/eslint-config/react'             // React 项目
    // '@applint/eslint-config/typescript/react'  // React-TS 
    // '@applint/eslint-config/rax'               // Rax 项目
    // '@applint/eslint-config/typescript/rax'    // Rax-TS 项目
  ],
};

编码规范

  • JavaScript 编码规范
  • TypeScript 编码规范
  • React 编码规范

Keywords

FAQs

Package last updated on 19 Apr 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