在我的package.json中,我有:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js">
</script>
<div id="top">
<button type="button" name="ptmBtn" id="ptmBtn">PTM</button>
</div>
<div id="bottomleft">
<b>Contact List</b>
<table id="cntList">
<tr>
<td>
<input type="checkbox" name="checkbox">
</td>
<td>Aniruddh</td>
</tr>
<tr>
<td>
<input type="checkbox" name="checkbox">
</td>
<td>Ajay
<td>
</tr>
<tr>
<td>
<input type="checkbox" name="checkbox">
</td>
<td>Vijay</td>
</tr>
</table>
</div>
<div id="bottomRight">
<b>Group List</b>
<table id="grpList">
<tr>
<td>
<input type="checkbox" name="checkbox">
</td>
<td>Group1</td>
</tr>
<tr>
<td>
<input type="checkbox" name="checkbox">
</td>
<td>Group2
<td>
</tr>
</table>
</div>
当我使用var x = new Date("2015-03-25"); // outputs Tue Mar 24 2015 17:00:00 GMT-0700 (PDT)
var y = new Date("03/25/2015"); // outputs Wed Mar 25 2015 00:00:00 GMT-0700 (PDT)
运行时,我看到了这个
"scripts": {
"lint": "eslint --debug components"
}
所以它忽略了我的目录。
当我从命令行运行它时,它按预期工作。
npm run lint
为什么它不适用于> eslint --debug components
eslint:cli Running on files +0ms
eslint:glob-util Creating list of files to process. +39ms
eslint:ignored-paths Looking for ignore file in c:\dev\Monies +6ms
eslint:ignored-paths Could not find ignore file in cwd +1ms
eslint:cli-engine Linting complete in: 13ms +5ms
?
答案 0 :(得分:3)
看起来你的目录名中有一个拼写错误:
eslint --debug components
与
node_modules\.bin\eslint --debug compoments
compo n ents!= compo m ents