react-starter-kit icon indicating copy to clipboard operation
react-starter-kit copied to clipboard

npm run lint:fix 报错

Open bjcangyue opened this issue 7 years ago • 1 comments

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

bjcangyue avatar Jun 08 '17 11:06 bjcangyue

我也是哎,日志:

(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) ✗ 

gengkeye avatar Feb 06 '18 07:02 gengkeye