How not to treat warnings as errors with Travis when involving React?

You need to modify the rule of the build process in your .travis.yml file:

script:
  - CI=false npm run build
  - npm run docs

With that option, Travis just recognizes the CI=false to allow the system not to treat warnings as errors, this will allow you to go on and use Travis with your React project, as I’m familiar with this myself as I have a few React projects using Travis right now.

1 Like