我有以下经过验证的json文件
{
"web": { // <= eslint error on : !
"client_id": "aClientId",
"project_id": "aProjectId",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://www.googleapis.com/oauth2/v3/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_secret": "aClientsecret",
"redirect_uris": ["https://developers.google.com/oauthplayground"]
},
"oauth": {
"refresh_token": "arefreshtoken",
"service": "gmail",
"type": "OAuth2",
"user": "yjohn.doe@example.com"
}
}
但是eslint在第一个出现错误:
2:8 error Parsing error: Unexpected token :
可能是什么问题?我需要在eslint配置中添加一些内容吗?
(使用eslint v4.5.0,节点8)