webstorm报错:ESLint: TypeError: this.libOptions.parse is not a function

上善若水 / 2024-01-25 / 原文

 

解决办法:

把 {**/*,*}.{js,ts,jsx,tsx,html,vue}

换成 {**/*,*}.(js,ts,jsx,tsx,html,vue)

 

原文:

https://stackoverflow.com/questions/73509984/eslint-typeerror-this-liboptions-parse-is-not-a-function

My friends, if you are using Webstorm or any Jetbrains product, you can use this pattern in your eslint settings and it will be fixed for EVER.

  1. Settings (or "Alt + Shift + S")

  2. Search "eslint"

  3. Choose "Automatic ESLint configuration"

  4. Then replace the pattern below with the exist one:

    "**/*.(js|ts|jsx|tsx|html|vue)"