我正在创建一个新的 Next.js 应用程序。当我运行yarn create-next-app
并开始在 Visual Studio Code 中编写 javascript 代码时,ESlint 扩展每次 i 数字都会返回一个错误。当然,eslint 不起作用。
错误是:
ESLint: Invalid Options: - Unknown options: env, parserOptions, rules - 'parserOptions' has been removed. Please use the 'overrideConfig.parserOptions' option instead. - 'rules' has been removed. Please use the 'overrideConfig.rules' option instead.. Please see the 'ESLint' output channel for details.
Run Code Online (Sandbox Code Playgroud)
这是用于立即视觉识别的图像:
Visual Studio Code 上的 Eslint 扩展错误
这是我的package.json
文件(Next.js 给出的默认 package.json):
{
"name": "myApp",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next …
Run Code Online (Sandbox Code Playgroud)