0.0.2 • Published 3 months ago

@voltax/eslint-config-uni-app v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
3 months ago

@voltax/eslint-config-uni-app

  • 合理的默认配置
  • 无需配合Prettier也能自动修复格式化
  • 使用简单无需繁琐的添加配置
  • 支持Typescript,UniApp-Vue3

安装

pnpm add -D @voltax/eslint-config-uni-app

配置.eslintrc

{
  "extends": ["@voltax/eslint-config-uni-app"]
}

添加命令

{
  "lint:fix": "eslint . --fix",
  "type:check": "vue-tsc --noEmit --skipLibCheck",
}

集成vue-tsc

  • 安装
pnpm add -D vue-tsc
  • 添加命令
{
  "type:check": "vue-tsc --noEmit --skipLibCheck",
}

VS Code 自动修复

{
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}
0.0.2

3 months ago