Socket
Book a DemoInstallSign in
Socket

eslint-config-minxing

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-minxing

【敏行H5程序】与【敏行node程序】`JavaScript`开发规则定制套装,支持`Vue`。

2.0.8
latest
Source
npmnpm
Version published
Weekly downloads
95
1800%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-minxing

【敏行H5程序】与【敏行node程序】JavaScript开发规则定制套装,支持Vue

安装

npm i eslint-config-minxing -D

peers依赖

  • eslint: 7.3.0+

项目根目录下的.eslintrc.js配置

针对webpack可编程配置的node程序。

nodejs 7.x

module.exports = {
  ...
  'extends': [
    'minxing/eslint-config-node7x.js'
  ],
  ...
};

nodejs 8.x 或更高

module.exports = {
  ...
  'extends': [
    'minxing/eslint-config-node8x.js'
  ],
  ...
};

src目录下的.eslintrc.js配置

javascriptvue 规则集

module.exports = {
  ...
  'root': true,
  'extends': [
    'minxing/eslint-config-vue.js'
  ],
  ...
};

typescriptvue 规则集

module.exports = {
  ...
  'root': true,
  'extends': [
    'minxing/eslint-config-vue-ts.js'
  ],
  ...
};

手动执行eslint

npm i npx -g

npx eslint **/*.* --fix

FAQs

Package last updated on 05 Jul 2020

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.