1.5.3 • Published 7 months ago
eslint-config-hewx v1.5.3
eslint-config-hewx
这是一个eslint配置文件库
配置步骤
如果您已经安装eslint并且初始化或者新建了.eslintrc.**
文件,请直接跳转第4步
1.为您的编辑器安装eslint扩展
2.为您的项目安装eslint
在项目根目录执行以下命令
npm install eslint -dev
或者
yarn add eslint -D
详见:https://eslint.bootcss.com/docs/user-guide/getting-started
3.初始化eslint,生成
文件
执行以下命令
eslint --init
3.1也可以直接在项目根目录新建.eslintrc.**
文件
配置详见:https://eslint.bootcss.com/docs/user-guide/configuring
4.安装eslint-config-hewx
执行以下命令
npm install eslint-config-hewx -dev
或者
yarn add eslint-config-hewx -D
5.配置eslint-config-hewx
在之前生成的.eslintrc.**
文件中的extends
字段添加:'eslint-config-hewx/uniapp-vue2-javascript'
module.exports = {
extends: [
'eslint-config-hewx/uniapp-vue2-javascript',
// ...
],
};
'eslint-config-hewx/uniapp-vue2-javascript'
中的uniapp-vue2-javascript
是可变的,根据项目类型选择合适的内容,目前支持的项目如下
name | 项目类型 |
---|---|
vue2-javascript | vue2+javascript |
vue2-typescript | vue2+typescript |
vue3-javascript | vue3+javascript |
vue3-typescript | vue3+typescript |
node-javascript | nodejs+javascript |
node-typescript | nodejs+typescript |
uniapp-vue2-javascript | uniapp+vue2+javascript |
uniapp-vue2-typescript | uniapp+vue2+typescript |
uniapp-vue3-javascript | uniapp+vue3+javascript |
uniapp-vue3-typescript | uniapp+vue3+typescript |
1.5.3
7 months ago
1.4.5
9 months ago
1.4.4
9 months ago
1.5.2
8 months ago
1.4.3
9 months ago
1.5.1
9 months ago
1.4.2
9 months ago
1.5.0
9 months ago
1.4.1
9 months ago
1.4.0
9 months ago
1.3.0
9 months ago
1.2.0
9 months ago
1.1.1
12 months ago
1.1.0
12 months ago
1.1.3
11 months ago
1.1.2
12 months ago
1.0.9
1 year ago
1.0.8
1 year ago
1.0.7
1 year ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago