0.0.3 • Published 1 year ago

@easyfe/eslint-config-vue2ts v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

@easyfe/eslint-config-vue2ts 包使用方法

使用方法

第一步

 npm i @easyfe/eslint-config-vue2ts -D

第二步

在项目根目录下面新建 .eslintrc.js 配置文件 文件配置如下

 module.exports = {
    extends: ["@easyfe/eslint-config-vue2ts"],
};
 

第三步

在项目根目录下面新建 .prettierrc 配置文件 文件配置如下

{
    "tabWidth": 4,
    "trailingComma": "none",
    "endOfLine": "auto",
    "semi": true,
    "printWidth": 120,
    "singleQuote": false
}

第四步

在项目根目录下面新建 .editorconfig 配置文件 文件配置如下

root = true
[*]
end_of_line = lf
charset = utf-8
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

注意

安装了 @easyfe/eslint-config-vue2ts 之后 原本项目里面的关于 eslint prettier

的依赖都可以去掉了