Socket
Book a DemoInstallSign in
Socket

jr-eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jr-eslint-config

ellint配置,个人前端代码检查规范

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

jr-eslint-config

ellint配置,个人前端代码检查规范

使用说明

1. 插件安装

npm install eslint jr-eslint-config

2. 增加配置

package.json增加脚本lint:

// package.json
"scripts": {
	"lint": "eslint *.js" // 配置要检查代码的文件/目录
}

3. 检查代码

开发完成后,一般打包或者发布前需要检查代码

npm run lint

自定义规则

如果想基于 jr-eslint-config 代码规范扩展自己的规则,可以在自己项目根目录下建立 .eslintrc 文件,并引入 jr-eslint-config

// .eslintrc
{
	"extends": "jr-eslint-config",
	"rules": {
		// your rules here
	}
}

Keywords

eslint

FAQs

Package last updated on 05 Aug 2016

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.