Reactjs 无法禁用";“反应/支撑类型”;在Create React应用程序中的我的eslintrc文件中

Reactjs 无法禁用";“反应/支撑类型”;在Create React应用程序中的我的eslintrc文件中,reactjs,create-react-app,eslint,Reactjs,Create React App,Eslint,呃,我已经为我的React应用程序安装了eslint,它只给我带来了问题。每次我打开并编辑一个文件时,它都会导致我的应用程序出现以下错误: Failed to compile. ./src/pages/Dashboard/Dashboard.js Line 17:22: 'history' is missing in props validation react/prop-types ... Search for the keywords to le

呃,我已经为我的React应用程序安装了eslint,它只给我带来了问题。每次我打开并编辑一个文件时,它都会导致我的应用程序出现以下错误:

Failed to compile.

./src/pages/Dashboard/Dashboard.js
  Line 17:22:  'history' is missing in props validation                    react/prop-types
...
Search for the keywords to learn more about each error.
我不想回去用propTypes更新我的50多个组件/文件,所以我尝试用
“react/prop types”禁用.eslintrc.json文件中的prop类型:“off”
我还尝试用
0
替换
“off”
,但没有成功


根据堆栈上的各种Q/A,这应该是可行的,但出于某种原因,它对我没有任何影响。有人能帮我让我的应用程序重新运行吗?

结果证明一切正常。我需要的是打开并保存导致问题的文件,因为eslint似乎在使用旧版本的文件,而我仍然打开它?不确定,但现在已经修好了