Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run lint:fix 报错 #75

Open
bjcangyue opened this issue Jun 8, 2017 · 1 comment
Open

npm run lint:fix 报错 #75

bjcangyue opened this issue Jun 8, 2017 · 1 comment

Comments

@bjcangyue
Copy link

本人在测试npm run lint:fix命令时报错,一大堆module找不到。

@gengkeye
Copy link

gengkeye commented Feb 6, 2018

我也是哎,日志:

(py3) ➜  react-starter-kit git:(master) ✗ npm run lint    

> [email protected] lint /home/seven/workspace/react-starter-kit
> eslint bin build config server src tests

/home/seven/workspace/react-starter-kit/src/containers/AppContainer.js
   1:28  error  'PropTypes' is defined but never used    no-unused-vars
  12:13  error  'routes' is missing in props validation  react/prop-types
  12:21  error  'store' is missing in props validation   react/prop-types

/home/seven/workspace/react-starter-kit/src/routes/PageNotFound/components/PageNotFound.js
  23:11  error  'router' PropType is defined but prop is never used  react/no-unused-prop-types

/home/seven/workspace/react-starter-kit/src/routes/Zen/components/Zen.js
  9:13  error  'fetchZen' is missing in props validation  react/prop-types
  9:23  error  'clearZen' is missing in props validation  react/prop-types

/home/seven/workspace/react-starter-kit/tests/components/Header/Header.spec.js
  3:8  error  'classes' is defined but never used  no-unused-vars

✖ 7 problems (7 errors, 0 warnings)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] lint: `eslint bin build config server src tests`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/seven/.npm/_logs/2018-02-06T07_07_41_167Z-debug.log
(py3) ➜  react-starter-kit git:(master) ✗ 

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

No branches or pull requests

2 participants