After upgrading webPack4, esLint kept telling me that I was wrong.

is there any rules that can solve the error reported by eslint?

Parsing error: Unexpected token, expected}

const STATUS_CONFIG = {
  "5": "",
  "4": "",
  "-2": "",
  "0": "",
  "1": "",
  "2": "",
  "3": "",
  "6": "",
  "7": "",
  "8": "",
};

clipboard.png

even this kind of simple object also reports this error, which is a bit confused. What rules do you have for

?
Nov.19,2021

is the rule of eslint . If you don't want to correct it, just comment on loader

.
Menu