TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Check that your Node.js project is well written, secure and follow conventions

74 点作者 fgribreau超过 10 年前

4 条评论

oblio超过 10 年前
IMO drop the gifs, especially the "mind blown" one. They're very annoying to watch while reading the documentation.
robryk超过 10 年前
What is meant by checking that the project is "secure" is checking dependencies against known security issues. While this is useful, this is completely different from what is advertised (I've expected some sort of a heuristic security anti-pattern detector).
评论 #8482530 未加载
nailer超过 10 年前
&gt; I don&#x27;t want to create&#x2F;edit a new make&#x2F;grunt&#x2F;gulp file or whatever hype dev use these days.<p>Make is from 1977, and is pretty rare for web developers. gulp was designed as a grunt replacement, anyone familiar with the former can learn the latter.<p>I love jslint, I love checking for insecure npm modules, and the other things this module provides seem good too, but having a build system doesn&#x27;t preclude any of those.
评论 #8482050 未加载
评论 #8482650 未加载
robotkilla超过 10 年前
Interesting library – I ran it on one of my projects which consists of JS compiled from literate coffeescript. The JS also has also been run through browserify and uglify.<p>My code is tested using mocha (albeit lightly), passes lint tests and seems to have no issues pre or post compiling, however when I run check-build I receive 28 errors and 25 warnings.<p>Here is a sample of check-build&#x27;s output:<p><pre><code> line 4 col 448 Line is too long. line 4 col 22 Missing &quot;use strict&quot; statement. line 4 col 80 Expected &#x27;===&#x27; and instead saw &#x27;==&#x27;. line 4 col 99 Missing &quot;use strict&quot; statement. line 4 col 109 Expected &#x27;{&#x27; and instead saw &#x27;return&#x27;. line 4 col 123 Missing &quot;use strict&quot; statement. line 4 col 124 Missing &quot;use strict&quot; statement. </code></pre> This seems to be directly related to using uglify – my guess is that I need to tweak the config file to fit my stack (I&#x27;m using the default example).<p>edit - I already changed the config to match my directory structure and am running check-build on the compiled JS.
评论 #8481783 未加载