@admc.com/eslintplugin-sn-test 3.8.1 → 3.9.1
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/bad1Scripts/all/sp_widget.client_script/setTimeout.js +4 -0
- package/bad1Scripts/all/sp_widget.client_script/window.js +4 -0
- package/bad1Scripts/all/sp_widget.client_script/windowDotTimeout.js +4 -0
- package/bad1Scripts/all/sp_widget.link/location.js +4 -0
- package/bad1Scripts/all/sp_widget.link/window.js +4 -0
- package/bad1Scripts/all/sp_widget.link/windowDotLocation.js +4 -0
- package/bad1Scripts/all/sys_ui_context_menu/backticks.js +1 -1
- package/bad1Scripts/global/sysauto_script/curWalkToSysid.js +1 -0
- package/bad1Scripts/iso/sys_script_client/onChangeNoLoading.js +4 -0
- package/bad1Scripts/scoped-es12/sys_script_include/grCountThenGet.js +7 -0
- package/bad1Scripts/scoped-es12/sys_script_include/gsNow.js +2 -0
- package/goodScripts/all/sp_widget.client_script/injections.js +8 -0
- package/goodScripts/all/sp_widget.link/injections.js +13 -0
- package/goodScripts/global/sysauto_script/curDirectSysid.js +1 -0
- package/goodScripts/iso/sys_script_client/onChangeIsLoading.js +7 -0
- package/goodScripts/iso/sys_script_client/onLoadIsLoading.js +7 -0
- package/goodScripts/iso/sys_script_client/onLoadNoLoading.js +4 -0
- package/goodScripts/scoped-es12/sys_script_include/grCountThenInterate.js +4 -0
- package/package.json +2 -2
- package/sneslintrc.json +4 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// eslint-disable-next-line max-len
|
|
2
|
-
console.info(`The built-in variables are g_list ${g_list}, g_fieldName (${g_fieldName
|
|
2
|
+
console.info(`The built-in variables are g_list ${g_list}, g_fieldName (${g_fieldName}), g_sysId ${g_sysId}`);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
gs.log("Sys id: " + current.application.sys_id, "fn");
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
function($document, $interval, $location, $timeout, $window) {
|
|
2
|
+
"use strict";
|
|
3
|
+
console.info("document", $document);
|
|
4
|
+
console.info("interval", $interval);
|
|
5
|
+
console.info("location", $location);
|
|
6
|
+
console.info("timeout", $timeout);
|
|
7
|
+
console.info("window", $window);
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
() => {
|
|
2
|
+
"use strict";
|
|
3
|
+
const $document = $injector.get("$document");
|
|
4
|
+
const $interval = $injector.get("$interval");
|
|
5
|
+
const $location = $injector.get("$location");
|
|
6
|
+
const $timeout = $injector.get("$timeout");
|
|
7
|
+
const $window = $injector.get("$window");
|
|
8
|
+
console.info("document", $document);
|
|
9
|
+
console.info("interval", $interval);
|
|
10
|
+
console.info("location", $location);
|
|
11
|
+
console.info("timeout", $timeout);
|
|
12
|
+
console.info("window", $window);
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
gs.log("Sys id: " + current.sys_id, "fn");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admc.com/eslintplugin-sn-test",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.1",
|
|
4
4
|
"description": "External tests for ESLint plugin @admc.com/eslint-plugin-sn",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "mocha --recursive",
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
"mocha": "^10.0.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@admc.com/eslint-plugin-sn": "^3.
|
|
31
|
+
"@admc.com/eslint-plugin-sn": "^3.9.8"
|
|
32
32
|
}
|
|
33
33
|
}
|
package/sneslintrc.json
CHANGED
|
@@ -24,12 +24,13 @@
|
|
|
24
24
|
"no-extra-parens": "error",
|
|
25
25
|
"no-eq-null": "error",
|
|
26
26
|
"@admc.com/sn/prefer-array-iterator": "error",
|
|
27
|
-
"@admc.com/sn/no-init-emptystring": "error"
|
|
27
|
+
"@admc.com/sn/no-init-emptystring": "error",
|
|
28
|
+
"@admc.com/sn/no-gr-count-iterate": "error"
|
|
28
29
|
},
|
|
29
30
|
"overrides": [
|
|
30
31
|
{ // ES6 overrides
|
|
31
32
|
"files": [ "**/@(noniso|iso)/*.js",
|
|
32
|
-
"**/@(sys_ui_script|sys_script_validator|sp_widget.client_script|sys_ux_data_broker_scriptlet)/all/*.js"], // eslint-disable-line max-len
|
|
33
|
+
"**/@(sys_ui_script|sys_script_validator|sp_widget.client_script|sys_ux_data_broker_scriptlet|sp_widget.link|sys_ui_context_menu)/all/*.js"], // eslint-disable-line max-len
|
|
33
34
|
"rules": {
|
|
34
35
|
"strict": ["error", "function"],
|
|
35
36
|
"prefer-arrow-callback": "error",
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
// Reverting eslint-plugin-sn exceptions back, because we overrode them generally above
|
|
58
59
|
// when raising warnings to errors.
|
|
59
60
|
"files":
|
|
60
|
-
["**/@(sys_ui_script|sp_widget.script|sp_widget.client_script|sp_widget.link)/*/*.js"],
|
|
61
|
+
["**/@(sys_ui_script|sp_widget.script|sp_widget.client_script|sp_widget.link|sp_widget.link|sys_ui_context_menu)/*/*.js"],
|
|
61
62
|
"rules": {
|
|
62
63
|
"prefer-template": "off",
|
|
63
64
|
"no-template-curly-in-string": "off"
|