简体   繁体   中英

How to disable ESLint in react native project?

I am new to React native Project. I am working on React native latest version 0.61.5 now. The whole project is showing red underline. The reason is ESLint and I want to disable I don't know how to proceed. can anyone please suggest me the way of handling that ESLint in Project.Thanks in advance.

You could place /* eslint-disable */ at the top of your file to tell ESLint to ignore it.

More disabling rules docs

If you wish to disable eslint for the whole project, you should disabled it in your config

Hi you can use this to ignore ESLint for some files or path you want ==> https://www.npmjs.com/package/eslint-plugin-disable

在此处输入图片说明

如果你使用的是 VS Code,你应该去 extensions 和 eslint 是否安装。如果安装了就禁用它并刷新项目

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM