@admc.com/eslintplugin-sn-test 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/badScripts/global/sys_script/initToUndefined.js +2 -0
- package/badScripts/global/sys_script/noIifeParams.js +3 -0
- package/badScripts/global/sys_script/noiife.js +1 -0
- package/badScripts/global/sys_script/unusedVar.js +2 -0
- package/badScripts/global/sys_script/wrongIifeParams.js +3 -0
- package/badScripts/global/sysauto_script/badIife.js +2 -0
- package/badScripts/global/sysauto_script/grNoValidate.js +4 -0
- package/badScripts/global/sysauto_script/traditionalFor.js +3 -0
- package/badScripts/scoped/sys_script/let.js +2 -0
- package/goodScripts/ecc_agent_script/good.js +1 -1
- package/goodScripts/global/sys_script/good.js +2 -0
- package/goodScripts/global/sys_script_include/createOtherClass.js +1 -1
- package/goodScripts/scoped/sys_script/good.js +2 -0
- package/package.json +1 -1
- package/sneslintrc.json +2 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
console.log("here without IIFE", "blaine");
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
(function() {
|
|
1
2
|
// Test availability of global vars from the different component lists:
|
|
2
3
|
gs.log("a message", "a source"); // coreServerObjects.txt
|
|
3
4
|
gs.log(SNC.CMDBUtil.getTables0("sys_db_object"), "src"); // directly in exports.js
|
|
@@ -9,3 +10,4 @@ gs.log(varsAreAllowed, "2nd");
|
|
|
9
10
|
const con = "a val";
|
|
10
11
|
con += "addition"; // Can't test for const changes
|
|
11
12
|
gs.log(con, "2nd");
|
|
13
|
+
})(previous, current);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This passes test because we assign to the new class.
|
|
2
2
|
// This is how SI classes are generally instantiated on SN, because this
|
|
3
3
|
// is how the auto-generated code templates do it.
|
|
4
|
-
|
|
4
|
+
const OtherAjaxProcessor = Class.create();
|
|
5
5
|
|
|
6
6
|
OtherAjaxProcessor.prototype = Object.extendsObject(AbstractAjaxProcessor, {
|
|
7
7
|
type: "OtherAjaxProcessor",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
(function() {
|
|
1
2
|
// Test availability of scoped vars from the different component lists:
|
|
2
3
|
gs.info(new sn_ws_err.NotAcceptableError("fake err")); // coreServerObjects.txt
|
|
3
4
|
gs.info(Object.keys(new sn_codesearch.CodeSearch()).length); // SIScopes
|
|
@@ -8,3 +9,4 @@ gs.info(varsAreAllowed);
|
|
|
8
9
|
const con = "a val";
|
|
9
10
|
con += "addition"; // Can't test for const changes
|
|
10
11
|
gs.info(con);
|
|
12
|
+
})(previous, current);
|
package/package.json
CHANGED