ESLint:修订间差异
来自康健生活
| 第96行: | 第96行: | ||
{{hc|package.json|<syntaxhighlight lang="javascript"> | {{hc|package.json|<syntaxhighlight lang="javascript"> | ||
"scripts": { | "scripts": { | ||
"lint": "eslint | "lint": "eslint --fix --ext .js,.vue --ignore-path .gitignore .", | ||
}, | }, | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
运行 <syntaxhighlight lang="bash"> | 运行 <syntaxhighlight lang="bash"> | ||
npm run lint</syntaxhighlight> 修复代码样式 | npm run lint</syntaxhighlight> 修复代码样式 | ||
== 参数 == | == 参数 == | ||
{| class="wikitable" | {| class="wikitable" | ||