How do I configure ESLint to allow fat arrow class methods

前端 未结 6 1387
北恋
北恋 2020-12-01 06:59

ESLint is throwing a Parsing error: Unexpected token = error when I try to lint my Es6 classes. What configuration parameter am I missing to enable fat arrow c

6条回答
  •  不知归路
    2020-12-01 07:32

    Your sample isn't valid ES6, so there's no way to configure eslint to allow it

提交回复
热议问题