intelliJでESLintの"TypeError: this.libOptions.parse is not a function"のエラーが出た

ESLint@8.0.1でTypeError: this.libOptions.parse is not a functionのエラーが出ました。ESLintのバージョンによっては、intelliJやWebStormで出てしまうようです。 以下を実行することでエラーが解消しました。

  1. ESLintのバージョンを8.22.0にする
  2. node_modulesを削除する
  3. 再度npm installする
$ npm install eslint@8.22.0 --save-exact 
$ rm -rf node_modules
$ npm i

参考