Tom*_*Tom 5 javascript eslint atom-editor vue.js
我正在将 Atom 代码编辑器用于带有 ESLINT (feross) 的 VueJS 项目。通过尝试快速原型布局,我得到了这些错误。
打开大括号之前缺少空格
字符串必须使用单引号
额外的分号
在原型阶段,我希望 ESLINT/ATOM 禁用/忽略这些错误并无论如何渲染站点。怎么做?
您可以暂时关闭 eslint。在我的设置中,检查build/webpack.base.conf.js显示以下片段:
module: {
rules: [
...(config.dev.useEslint ? [createLintingRule()] : []),
{
test: /\.vue$/,
Run Code Online (Sandbox Code Playgroud)
linting 规则将启用 eslint。让我们避免这种情况并设置config.dev.useEslint为false。转到config/index.js并更改以下代码片段:
// Use Eslint Loader?
// If true, your code will be linted during bundling and
// linting errors and warnings will be shown in the console.
useEslint: false,
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6237 次 |
| 最近记录: |