Socket
Book a DemoInstallSign in
Socket

eslint-config-stzhang

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-stzhang

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

1.0.5
latest
Source
npmnpm
Version published
Weekly downloads
11
175%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-stzhang

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

安装

npm i eslint-config-stzhang -D

peers依赖

  • eslint: 5.6+

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

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

nodejs 7.x

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

nodejs 8.x 或更高

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

src目录下的.eslintrc.js配置

重点针对*.vue程序。

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

手动执行eslint

npm i npx -g

npx eslint **/*.* --fix

FAQs

Package last updated on 07 Oct 2018

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.