eslint Unknown options: reportUnusedDisableDirectives错误

文章讲述了在WebStorm2023.3版本中遇到关于linterOptions.reportUnusedDisableDirectives的错误,升级到2023.3.3版本后问题得到解决,可能与ESLint版本降级至8.55.0有关。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Error: Invalid Options:

  • Unknown options: reportUnusedDisableDirectives

  • ‘reportUnusedDisableDirectives’ has been removed. Please use the ‘overrideConfig.linterOptions.reportUnusedDisableDirectives’ option instead.

Error: Invalid Options:

  • Unknown options: reportUnusedDisableDirectives

  • ‘reportUnusedDisableDirectives’ has been removed. Please use the ‘overrideConfig.linterOptions.reportUnusedDisableDirectives’ option instead.

网上说把eslist降级到8.55.0,也不行
我使用的是webstorm 2023.3版本,升级到2023.3.3就解决了。

PS D:\housework\housework> npm run serve > [email protected] serve > vue-cli-service serve INFO Starting development server... ERROR Failed to compile with 2 errors 16:39:55 [eslint] Invalid Options: - Unknown options: extensions - 'extensions' has been removed. You may use special comments to disable some warnings. Use // eslint-disable-next-line to ignore the next line. Use /* eslint-disable */ to ignore all warnings in a file. Error: Child compilation failed: [eslint] Invalid Options: - Unknown options: extensions - 'extensions' has been removed. - child-compiler.js:211 [housework]/[html-webpack-plugin]/lib/child-compiler.js:211:18 - Compiler.js:629 finalCallback [housework]/[webpack]/lib/Compiler.js:629:5 - Compiler.js:664 [housework]/[webpack]/lib/Compiler.js:664:11 - Compiler.js:1350 [housework]/[webpack]/lib/Compiler.js:1350:17 - task_queues:95 processTicksAndRejections node:internal/process/task_queues:95:5 - task_queues:64 runNextTicks node:internal/process/task_queues:64:3 - timers:454 process.processImmediate node:internal/timers:454:9 ERROR in [eslint] Invalid Options: - Unknown options: extensions - 'extensions' has been removed. ERROR in Error: Child compilation failed: [eslint] Invalid Options: - Unknown options: extensions - 'extensions' has been removed. - child-compiler.js:211 [housework]/[html-webpack-plugin]/lib/child-compiler.js:211:18 - Compiler.js:629 finalCallback [housework]/[webpack]/lib/Compiler.js:629:5 - Compiler.js:664 [housework]/[webpack]/lib/Compiler.js:664:11 - Compiler.js:1350 [housework]/[webpack]/lib/Compiler.js:1350:17 - task_queues:95 processTicksAndRejections node:internal/process/task_queues:95:5 - task_queues:64 runNextTicks node:internal/process/task_queues:64:3 - timers:454 process.processImmediate node:internal/timers:454:9 1 ERROR in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details) webpack compiled with 3 errors
03-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值