Skip to content
This repository has been archived by the owner on Jun 16, 2019. It is now read-only.

run lint: esw webpack.config #37

Closed
trickydisco78 opened this issue Nov 18, 2016 · 14 comments
Closed

run lint: esw webpack.config #37

trickydisco78 opened this issue Nov 18, 2016 · 14 comments

Comments

@trickydisco78
Copy link

trickydisco78 commented Nov 18, 2016

Node version:6.9.1

npm version:3.10.8

Operating system:Win 10

Command line used:npm run lint
image

Steps to reproduce:

I run the command npm run lint and get this issue with the esw script.

I've got esw.cmd and esw in /.bin folder but this script won't run

Why is it being run through esw rather than eslint?

@coryhouse
Copy link
Owner

esw is eslint-watch. It's a wrapper around eslint that adds watch capability.

Regarding your issue, if you have a .eslintrc in your user file, be sure to delete it. It's likely conflicting with the course's .eslintrc.

If that doesn't work, please check this list: https://github.com/coryhouse/pluralsight-redux-starter#having-issues-try-these-things-first

@trickydisco78
Copy link
Author

i've fixed it. It was complaing about paths which i think is an issue with eslint-watch 2.1.11. I updated to 2.1.14 (both globally and locally) and it fixed it

@bensezio
Copy link

bensezio commented Jan 24, 2017

Hi @coryhouse,
I am currently struggling with the same issue. I have updated eslint-watch to 2.1.14 but issue still persists. I followed all the other processes and even deleted the node_modules folder; still no luck.

Please find my debug log here on git:
https://github.com/bensezio/React_WeatherApp/blob/master/npm-debug.log

@bensezio
Copy link

I have managed to fix this issue by following the instructions from Evilcat325 on this thread
coryhouse/react-slingshot#151

@walifaizy
Copy link

walifaizy commented Apr 9, 2017

Node version:6.10.0

npm version:3.9.5

Operating system:Win 10

Git
screenshot 84

My npm start commad is running properly, but when i use npm run lint than their are 5 errors and 1 warning (which are mentioned in above image),

  • i am taking your react/redux course from pluralsight,

  • i have copy paste package.json , webpack config and eslint file from your react-redux-starter

Below is my project github link
https://github.com/walifaizy/react-redux-library

@coryhouse
Copy link
Owner

The link you provided doesn't work, but based on the screenshot, it looks like you just need to run npm install. :)

@walifaizy
Copy link

walifaizy commented Apr 10, 2017

Hi Cory npm modules are already installed, I think there are some linting issues, I have tried lot but my project link is not working
Thanks

@coryhouse
Copy link
Owner

I just cloned that repo, ran npm install, then npm start and it started fine without any warnings.

@walifaizy
Copy link

walifaizy commented Apr 10, 2017 via email

@coryhouse
Copy link
Owner

Here's what I get. It looks like you just didn't run npm install.

cory@Mac ~/Desktop/react-redux-library [7:44:31]

$ npm run lint

course-library@1.0.0 lint /Users/cory/Desktop/react-redux-library
esw webpack.config.* src tools

/Users/cory/Desktop/react-redux-library/src/index.js (0/1)
! 1:1 Unexpected console statement no-console

! 1 warning (7:44:36 AM)

@walifaizy
Copy link

walifaizy commented Apr 10, 2017 via email

@coryhouse
Copy link
Owner

Make sure you're running npm install in the same path as package.json. You should see node_modules populated with many folders after you do.

@walifaizy
Copy link

walifaizy commented Apr 10, 2017 via email

@Bahaa-Addin
Copy link

Bahaa-Addin commented May 5, 2019

Try npm i -g eslint eslint-watch

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants