mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-14 23:24:52 +09:00
Use strict mode
Add strict mode directives to all js files.
This commit is contained in:
1 parent
b254e4189d
commit
3dba92a03d
65 files changed
+68
-3
No files matched your search
@@ -1,3 +1,4 @@
|
||||
"use strict";
|
||||
let link = require("lib/link");
|
||||
let plugin = require("lib/plugin");
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/**
|
||||
* @module
|
||||
*/
|
||||
"use strict";
|
||||
const plugin = require("lib/plugin");
|
||||
const luaTools = require("lib/luaTools");
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
"use strict";
|
||||
const assert = require("assert").strict;
|
||||
|
||||
const mock = require("../../../test/mock");
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
"use strict";
|
||||
const link = require("lib/link");
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
"use strict";
|
||||
const needle = require("needle");
|
||||
|
||||
const plugin = require("lib/plugin");
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
"use strict";
|
||||
const fs = require("fs-extra");
|
||||
const path = require("path");
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// These are libraries that does not have any units test, they are
|
||||
// required here in order to track coverage for them.
|
||||
|
||||
"use strict";
|
||||
require("../instance");
|
||||
require("../master");
|
||||
@@ -1,3 +1,4 @@
|
||||
"use strict";
|
||||
let link = require("lib/link");
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
"use strict";
|
||||
const plugin = require("lib/plugin");
|
||||
const { Gauge } = require("lib/prometheus");
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
"use strict";
|
||||
const assert = require("assert").strict;
|
||||
|
||||
const mock = require("../../../test/mock");
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
"use strict";
|
||||
const doleNN = require("./dole_nn_base");
|
||||
|
||||
const prometheus = require("lib/prometheus");
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//Sigmoids...
|
||||
|
||||
"use strict";
|
||||
function sigmoid0(x)
|
||||
{
|
||||
return x/(1+Math.abs(x));
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
"use strict";
|
||||
const link = require("lib/link");
|
||||
const config = require("lib/config");
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
"use strict";
|
||||
const fs = require("fs-extra");
|
||||
|
||||
const plugin = require("lib/plugin");
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
"use strict";
|
||||
const express = require("express");
|
||||
const path = require("path");
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// function to draw data we recieve from ajax requests
|
||||
"use strict";
|
||||
_lastData = [];
|
||||
function drawcontents(data) {
|
||||
data = data || _lastData; //Cache data so we can drawcontents without waiting for the server, for the search box.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// These are libraries that does not have any units test, they are
|
||||
// required here in order to track coverage for them.
|
||||
|
||||
"use strict";
|
||||
require("../instance");
|
||||
require("../master");
|
||||
require("../dole");
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
"use strict";
|
||||
const assert = require("assert").strict;
|
||||
|
||||
const routes = require("../routes");
|
||||
|
||||
Reference in new issue
Block a user