javascript - “职位”是什么意思以及如何找到职位
问题描述
今天当我npx eslint --fix ./
在powershell中运行时,它会登录Unexpected token } in JSON at position 93
.eslintrc.json。所以我在这里完全有问题:1.'位置93'是什么意思以及如何在我的代码中找到确切的位置,因为我不知道93,我曾经在控制台记录错误位于哪一行(列)时找到位置。2.我的.eslintrc.json好像没有语法错误,大家能帮我看看问题吗?
{
"env": {
"node": true,
"commonjs": true,
"es6": true,
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018
},
"plugins": [
"react"
],
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"windows"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
}
}
解决方案
comma
请按顺序删除"es6": true,
您应该将您的 json 粘贴到工具检查验证 json 格式中。
例如:https ://jsoneditoronline.org/是在线工具json格式
推荐阅读
- odoo - 如何修复错误“没有名为 odoo 的模型”
- ios - UITableView 中的阴影过多
- javascript - 为什么我不能使用 webpack 捆绑文件中的类?
- go - 如何在没有构建服务器的情况下构建 Caddy?如何手动管理 Caddy 插件?
- c# - WebApi 没有序列化从 Exception 继承的类
- flutter - 在颤振中使用 StreamProvider 时出现断言错误
- c# - 我想使用计时器在winform中每1秒更改一次背景色
- twilio - 无需拨打电话即可收听 twiml
- macos - 更改纹理的一小部分会导致纹理的其余部分变黑
- pytorch - Pytorch:在 Linux 上未检测到支持 CUDA 的设备