@admc.com/eslintplugin-sn-test 3.11.1 → 3.12.0

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.
@@ -0,0 +1,5 @@
1
+ function validate() {
2
+ "use strict";
3
+ const msg = "client log";
4
+ console.info(`Message: ${msg}`);
5
+ }
@@ -0,0 +1 @@
1
+ console.info(`TABLE: ${g_form.getTableName()}`);
@@ -0,0 +1,5 @@
1
+ function validate() {
2
+ "use strict";
3
+ const msg = "client log";
4
+ console.info("Message: " + msg);
5
+ }
@@ -0,0 +1 @@
1
+ console.info("TABLE: " + g_form.getTableName());
@@ -0,0 +1,7 @@
1
+ (function() {
2
+ "use strict";
3
+ if (input.datum) {
4
+ data.datum = input.datum;
5
+ gs.info("Set datum for client to (" + input.data + ')');
6
+ }
7
+ })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admc.com/eslintplugin-sn-test",
3
- "version": "3.11.1",
3
+ "version": "3.12.0",
4
4
  "description": "External tests for ESLint plugin @admc.com/eslint-plugin-sn",
5
5
  "scripts": {
6
6
  "test": "mocha --recursive",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "homepage": "https://github.com/unsaved/eslint-plugin-sn#readme",
27
27
  "dependencies": {
28
- "@admc.com/eslint-plugin-sn": "^3.13.1",
28
+ "@admc.com/eslint-plugin-sn": "^3.16.0",
29
29
  "mocha": "^10.0.0"
30
30
  }
31
31
  }
package/sneslintrc.json CHANGED
@@ -54,15 +54,19 @@
54
54
  "prefer-spread": "error",
55
55
  "prefer-template": "error"
56
56
  }
57
+ }, { // Same reason as the warn-to-error overides above, but rule applies only to some scripts.
58
+ "files": [ "**/catalog_script_client/*/*.js" ],
59
+ "rules": { "@admc.com/sn/no-backtick-curlyref": "error" }
57
60
  }, {
58
61
  // Reverting eslint-plugin-sn exceptions back, because we overrode them generally above
59
62
  // when raising warnings to errors.
60
63
  "files":
61
- ["**/@(sys_ui_script|sp_widget.script|sp_widget.client_script|sp_widget.link|sp_widget.link|sys_ui_context_menu)/*/*.js"],
62
- "rules": {
63
- "prefer-template": "off",
64
- "no-template-curly-in-string": "off"
65
- }
64
+ ["**/@(sys_ui_script|sp_widget.script|sp_widget.client_script|sp_widget.link|sys_ui_context_menu)/*/*.js"],
65
+ "rules": { "no-template-curly-in-string": "off" }
66
+ }, {
67
+ "files":
68
+ ["**/@(sys_ui_script|sp_widget.script|sp_widget.client_script|sp_widget.link|sys_ui_context_menu|sys_script_validator|catalog_script_client)/*/*.js"],
69
+ "rules": { "prefer-template": "off" }
66
70
  }, { // Overriding for ES5+ IIFE scriptlets}
67
71
  "files": [
68
72
  "**/@(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