#!/usr/bin/env node /** * * 格式化代码 * 例如: * - ./scripts/lint * - ./scripts/lint --fix */ const { execShell } = require("./.exec"); const scriptName=process.argv[2]; let fixed='' if(scriptName!=null){ fixed='--fix' } ;(async ()=>await execShell(`eslint ${fixed} --ext .js,.ts,.vue --ignore-path .gitignore .`))()