@admc.com/eslintplugin-sn-test 3.11.0 → 3.11.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/scoped-es12/sysevent_in_email_action/ootbBoilerplate.js +1 -1
- package/bad1Scripts/scoped-es5/sp_widget.script/globalLog.js +1 -0
- package/bad1Scripts/scoped-es5/sys_script/brCurrentUpdate.js +1 -0
- package/bad1Scripts/sss_scoped-es12/sys_variable_value/noIife.js +2 -0
- package/goodScripts/scoped-es12/sys_atf_step_config.step_execution_generator/nice.js +2 -2
- package/goodScripts/scoped-es12/sysevent_in_email_action/cleanedBoilerplate.js +1 -1
- package/goodScripts/scoped-es5/sp_widget.script/good.js +1 -0
- package/goodScripts/scoped-es5/sys_processor/scopedLogging.js +1 -0
- package/goodScripts/scoped-es5/sys_script/glideDateDV.js +1 -0
- package/goodScripts/scoped-es5/sys_script/good.js +1 -0
- package/goodScripts/scoped-es5/sys_script_email/good.js +1 -0
- package/goodScripts/scoped-es5/sys_transform_map/good.js +1 -0
- package/goodScripts/sin_scoped-es12/sys_variable_value/sysid.js +3 -0
- package/goodScripts/sss_scoped-es12/sys_variable_value/safeNoIife.js +20 -0
- package/goodScripts/sss_scoped-es12/sys_variable_value/sysid.js +24 -0
- package/package.json +1 -1
- package/sneslintrc.json +5 -4
- /package/bad2Scripts/{atf_rsss_script-global → sss_global}/sys_variable_value/ootbBoilerplate.js +0 -0
- /package/goodScripts/{atf_rsss_script-global → sss_global}/sys_variable_value/cleanedBoilerplate.js +0 -0
- /package/goodScripts/{atf_rsss_script-es12 → sss_scoped-es12}/sys_variable_value/cleanedBoilerplate.js +0 -0
- /package/goodScripts/{atf_rsss_script-es12 → sss_scoped-es12}/sys_variable_value/useGlobals.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
(function runAction(/*GlideRecord*/ current, /*GlideRecord*/ event, /*EmailWrapper*/ email, /*ScopedEmailLogger*/ logger, /*EmailClassifier*/ classifier) {
|
|
2
|
+
"use strict";
|
|
3
3
|
|
|
4
4
|
// Implement email action here
|
|
5
5
|
logger.info(`Input params (${current}) (${event}) (${email}) (${classifier})`);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
(function runAction(/*GlideRecord*/ current, /*GlideRecord*/ event, /*EmailWrapper*/ email, /*ScopedEmailLogger*/ logger, /*EmailClassifier*/ classifier) {
|
|
2
|
+
"use strict";
|
|
3
3
|
logger.info(`Input params (${current}) (${event}) (${email}) (${classifier})`);
|
|
4
4
|
})(current, event, email, logger, classifier);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
gs.info(`Provided functions:
|
|
2
|
+
${jasmine}
|
|
3
|
+
${describe}
|
|
4
|
+
${xdescribe}
|
|
5
|
+
${fdescribe}
|
|
6
|
+
${it}
|
|
7
|
+
${xit}
|
|
8
|
+
${fit}
|
|
9
|
+
${beforeEach}
|
|
10
|
+
${beforeAll}
|
|
11
|
+
${afterEach}
|
|
12
|
+
${afterAll}
|
|
13
|
+
${expect}
|
|
14
|
+
${fail}
|
|
15
|
+
${pending}
|
|
16
|
+
${spyOn}
|
|
17
|
+
+ input Params:
|
|
18
|
+
${steps}
|
|
19
|
+
${params}
|
|
20
|
+
`);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
((steps, params) => {
|
|
2
|
+
"use strict";
|
|
3
|
+
gs.info(`Provided functions:
|
|
4
|
+
${jasmine}
|
|
5
|
+
${describe}
|
|
6
|
+
${xdescribe}
|
|
7
|
+
${fdescribe}
|
|
8
|
+
${it}
|
|
9
|
+
${xit}
|
|
10
|
+
${fit}
|
|
11
|
+
${beforeEach}
|
|
12
|
+
${beforeAll}
|
|
13
|
+
${afterEach}
|
|
14
|
+
${afterAll}
|
|
15
|
+
${expect}
|
|
16
|
+
${fail}
|
|
17
|
+
${pending}
|
|
18
|
+
${spyOn}
|
|
19
|
+
+ input Params:
|
|
20
|
+
${steps}
|
|
21
|
+
${params}
|
|
22
|
+
`);
|
|
23
|
+
gs.info("123456789012345678901234567890ab");
|
|
24
|
+
})(outputs, steps, params, stepResult, assertEqual);
|
package/package.json
CHANGED
package/sneslintrc.json
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@admc.com/sn/no-client-gr": "error"
|
|
44
44
|
}
|
|
45
45
|
}, { // ES 12 overrides
|
|
46
|
-
"files": [ "**/scoped-es12/*.js" ],
|
|
46
|
+
"files": [ "**/scoped-es12/*.js", "**/sys_variable_value/s*_scoped-es12/*.js" ],
|
|
47
47
|
"rules": {
|
|
48
48
|
"strict": ["error", "global"],
|
|
49
49
|
"prefer-arrow-callback": "error",
|
|
@@ -63,10 +63,11 @@
|
|
|
63
63
|
"prefer-template": "off",
|
|
64
64
|
"no-template-curly-in-string": "off"
|
|
65
65
|
}
|
|
66
|
-
}, { // Overriding for
|
|
66
|
+
}, { // Overriding for ES5+ IIFE scriptlets}
|
|
67
67
|
"files": [
|
|
68
|
-
"**/@(sys_script|sys_ws_operation|sys_web_service|sys_processor|sys_script_email|sys_transform_map|sys_transform_script|sp_widget.script|sys_ui_page.processing_script)/scoped-
|
|
69
|
-
"**/sys_ui_action/@(iso|noniso)_scoped-
|
|
68
|
+
"**/@(sys_script|sys_ws_operation|sys_web_service|sys_processor|sys_script_email|sys_transform_map|sys_transform_script|sp_widget.script|sys_ui_page.processing_script|sysevent_in_email_action|sys_atf_step_config.step_execution_generator)/scoped-es*/*.js", // eslint-disable-line max-len
|
|
69
|
+
"**/sys_ui_action.script/@(iso|noniso)_scoped-es*/*.js",
|
|
70
|
+
"**/sys_variable_value/sss_scoped-es*/*.js"
|
|
70
71
|
],
|
|
71
72
|
"rules": { "strict": ["error", "function"] }
|
|
72
73
|
}, { // Custom table and scope
|
/package/bad2Scripts/{atf_rsss_script-global → sss_global}/sys_variable_value/ootbBoilerplate.js
RENAMED
|
File without changes
|
/package/goodScripts/{atf_rsss_script-global → sss_global}/sys_variable_value/cleanedBoilerplate.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/goodScripts/{atf_rsss_script-es12 → sss_scoped-es12}/sys_variable_value/useGlobals.js
RENAMED
|
File without changes
|