【发布时间】:2020-03-23 21:41:46
【问题描述】:
我有以下结构
myproject
src
indxe.js
在我的 package.json 中我也有:
"scripts": {
"build": "babel src -d dist --source-maps",
"serve": "node dist/index.js",
"start": "babel-node src/index.js",
"start:dev": "nodemon src/index.js --exec babel-node",
"test": "jest --runInBand --verbose",
"coverage": "jest --coverage --runInBand --verbose",
"eslint": "eslint src/**/.js --ignore-pattern \"node_modules/\""
},
但正在运行
yarn eslint
我收到一个错误
"eslint": "eslint src/**/.js --ignore-pattern \"node_modules/\""
$ eslint src/**/.js --ignore-pattern "node_modules/"
Oops! Something went wrong! :(
ESLint: 5.10.0.
No files matching the pattern "src/**/.js" were found.
Please check for typing mistakes in the pattern.
error Command failed with exit code 2.
我不明白为什么应该没问题...
欢迎反馈
【问题讨论】: