简体   繁体   English

几个错误“;” 在安装ESLint airbnb之后应该在package.json中

[英]Several errors ';' expected in package.json after installing ESLint airbnb

After installing eslint packages from airbnb I have received errors in package.json,which say that I'm missing semicolons, while before installation of packages error did not occur. 从airbnb安装eslint软件包后,我在package.json中收到错误,该错误表明我缺少分号,而在安装软件包之前未发生错误。 The problem is shown in the image below. 下图显示了该问题。

在此处输入图片说明

Code from .eslintrc : .eslintrc代码:

{ "extends": "airbnb", "parserOptions": { "ecmaVersion": 6 }, "env": { "es6": true, "node": true, "browser": true } }

The questions are: 问题是:

  1. why these errors are occuring? 为什么会出现这些错误?

  2. how to fix this? 如何解决这个问题?

在项目的Visual Studio代码上卸载/禁用tslint ,该错误来自tslint

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM