ESlint parsing error “Unexpected token” on TypeScript cast operator “as”

I was running into a similar problem, and a simple fix that worked for me was the following.
I added this to my package.json:

  "eslintConfig": {
    "extends": [
      "react-app"
    ]
  },

I noticed that create-react-app --template typescript generates a package.json with this in it.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)