react-webpack-generators / generator-react-webpack

Yeoman generator for ReactJS and Webpack
http://newtriks.com/2013/12/31/automating-react-with-yeoman-and-grunt/
MIT License
2.87k stars 356 forks source link

Add "mocha" to the "env" list of .esltinrc #195

Closed louisremi closed 8 years ago

louisremi commented 8 years ago

Hi,

My editor is configured to automatically lint all files when an .eslintrc file is present, and files in the test/ dir don't validate because mocha isn't listed as en environment in the .eslintrc I wish I could've made a PR to propose that change, but I couldn't locate the template for this file.

weblogixx commented 8 years ago

Hi @louisremi,

I have just added this feature in a new release. It should work now for newly generated projects. The code you are looking for is located in https://github.com/weblogixx/react-webpack-template. This is the standalone version of the webpack config used by the generator.