@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.
- package/bad1Scripts/all/sys_script_validator/interpolateStr.js +5 -0
- package/bad1Scripts/iso/catalog_script_client/interpolateStr.js +1 -0
- package/goodScripts/all/sys_script_validator/noInterp.js +5 -0
- package/goodScripts/iso/catalog_script_client/noInterp.js +1 -0
- package/goodScripts/scoped-es12/sp_widget.script/noInterp.js +7 -0
- package/package.json +2 -2
- package/sneslintrc.json +9 -5
- /package/goodScripts/{sys_script_validator → all/sys_script_validator}/good.js +0 -0
- /package/{bad1Scripts → goodScripts}/scoped-es5/sys_ui_action.script/console.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
console.info(`TABLE: ${g_form.getTableName()}`);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
console.info("TABLE: " + g_form.getTableName());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admc.com/eslintplugin-sn-test",
|
|
3
|
-
"version": "3.
|
|
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.
|
|
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|
|
|
62
|
-
"rules": {
|
|
63
|
-
|
|
64
|
-
|
|
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
|
|
File without changes
|
|
File without changes
|