So far, only browser-based JS files were required to be in strict mode (in the
function form). This commit adds such a requirement to Node.js scripts where
the global form is preferred. All Node.js scripts in sloppy mode were
converted to strict mode.
Closes gh-4499
(cherry picked from commit
bbad821c399da92995a11b88d6684970479d4a9b)
"env": {
"es6": true,
"node": true
+ },
+
+ "rules": {
+ "strict": ["error", "global"]
}
}
-module.exports = function( grunt ) {
- "use strict";
+"use strict";
+module.exports = function( grunt ) {
function readOptionalJSON( filepath ) {
var stripJSONComments = require( "strip-json-comments" ),
data = {};
+"use strict";
+
var fs = require( "fs" );
module.exports = function( Release ) {
+"use strict";
+
var
fs = require( "fs" ),
shell = require( "shelljs" ),
+"use strict";
+
module.exports = function( Release, files, complete ) {
var
+"use strict";
+
var fs = require( "fs" ),
npm = require( "npm" ),
chalk = require( "chalk" ),
* and includes/excludes specified modules
*/
-module.exports = function( grunt ) {
-
- "use strict";
+"use strict";
+module.exports = function( grunt ) {
var fs = require( "fs" ),
requirejs = require( "requirejs" ),
Insight = require( "insight" ),
-module.exports = function( grunt ) {
-
- "use strict";
+"use strict";
+module.exports = function( grunt ) {
var fs = require( "fs" ),
filename = grunt.option( "filename" ),
distpaths = [
-module.exports = ( grunt ) => {
-
- "use strict";
+"use strict";
+module.exports = ( grunt ) => {
const fs = require( "fs" );
const spawnTest = require( "./lib/spawn_test.js" );
const testsDir = "./test/node_smoke_tests/";
+"use strict";
+
var fs = require( "fs" );
module.exports = function( grunt ) {
+"use strict";
+
var fs = require( "fs" );
module.exports = function( grunt ) {
-module.exports = function( grunt ) {
-
- "use strict";
+"use strict";
+module.exports = function( grunt ) {
grunt.registerTask( "testswarm", function( commit, configFile, projectName, browserSets,
timeout, testMode ) {
var jobName, config, tests,