Skip to content

Latest commit

 

History

History
43 lines (39 loc) · 733 Bytes

useEslint.md

File metadata and controls

43 lines (39 loc) · 733 Bytes

How to use eslint for code style control of your extension

1. Install yarn

npm install -g yarn

Note: Here we use global installation, if you have already installed, you can ignore it.

2. Install related dependencies

yarn 

Start eslint detection

yarn lint

Automatically fix code formatting

yarn lint:fix

`

如何使用eslint对自己的拓展码风进行控制

1. 安装yarn

npm install -g yarn

注:这里使用全局安装,如果你已经安装可以忽略。

2. 安装相关依赖

yarn 

启动eslint检测

yarn lint

对代码格式进行自动修复

yarn lint:fix