Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/370.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何解散';使用严格的';原子中的jshint_Javascript_Atom Editor_Jshint_Use Strict - Fatal编程技术网

Javascript 如何解散';使用严格的';原子中的jshint

Javascript 如何解散';使用严格的';原子中的jshint,javascript,atom-editor,jshint,use-strict,Javascript,Atom Editor,Jshint,Use Strict,我想禁用JSHint警告“W097”:使用“use strict”的函数形式 我知道我可以放置/*jshint-W097*/和/*jshint节点:true*/ 但我不想手动将其添加到每个页面的顶部。有没有办法从源代码或设置中禁用 非常感谢您可以为您的项目甚至整个atom安装定义一个.jshintrc文件。假设您安装了jshint,您可以在“包含的功能”主题下参考。我基本上只是复制并粘贴了本地项目中jshint文件中的所有选项。从那里我将false设置为strict,将true设置为esnext

我想禁用JSHint警告“W097”:使用“use strict”的函数形式

我知道我可以放置
/*jshint-W097*
/和
/*jshint节点:true*/

但我不想手动将其添加到每个页面的顶部。有没有办法从源代码或设置中禁用


非常感谢

您可以为您的项目甚至整个atom安装定义一个
.jshintrc
文件。假设您安装了jshint,您可以在“包含的功能”主题下参考。

我基本上只是复制并粘贴了本地项目中jshint文件中的所有选项。从那里我将false设置为strict,将true设置为esnext

你可以,你知道的,对吧?你是如何在没有找到全局设置的情况下找到内联设置的?可能是@vlaz的重复,因为我查看了这篇文章,该文章确实列出了.jshintrc。是的,我终于找到了它,并使用我想要的设置运行了。但它只在项目层面起作用。我正在修改源代码,看看是否可以从整个软件包中禁用它。我尝试过用jshintrc文件禁用它,但从未成功过。但是我会看一下自述文件,谢谢。我尝试添加了/*jshint-W097/和/jshint node:true*/但这可能不是正确的命令