@typescript-eslint/eslint-plugin error: 'Route' is defined but never used (no-unused-vars)

后端 未结 4 942
傲寒
傲寒 2021-02-12 11:10

After eslint adds typescript check, there will be an error when the attribute variable in the class definition is Array. \"e

4条回答
  •  南方客
    南方客 (楼主)
    2021-02-12 11:12

    If someone are still having the issue, I add "extends": ["eslint:recommended", "plugin:react/recommended"], on the .eslintrc.json file and the problem get solved.

提交回复
热议问题