package.json
里找到eslintConfig
新增
"eslintConfig": {
"rules": {
"no-undef": "off",
"no-restricted-globals": "off",
"no-unused-vars": "off"
},
},
标签:unused,off,vars,no,package,React,eslintConfig,关闭,Eslint
来源: https://blog.csdn.net/AK852369/article/details/117629379