@admc.com/eslintplugin-sn-test 1.1.0 → 1.1.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/badScripts/iso/sys_ui_action/actionVar.js +1 -0
- package/badScripts/noniso/sys_ui_action/actionVar.js +1 -0
- package/goodScripts/{custalt → custom_alt}/custom_table/good.js +0 -0
- package/goodScripts/global/sys_ui_action/actionVar.js +1 -0
- package/goodScripts/iso_scopedaction/sys_ui_action/actionVar.js +1 -0
- package/masterTest.js +2 -2
- package/package.json +2 -2
- package/sneslintrc.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
console.info(action.getGlideURI());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
console.info(action.getGlideURI());
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
gs.log(action.getGlideURI(), "src");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
gs.info(action.getGlideURI());
|
package/masterTest.js
CHANGED
|
@@ -14,7 +14,7 @@ const tableBase = ex[3];
|
|
|
14
14
|
const scriptPath = path.join(`${ex[1]}Scripts`, `${altscope?(altscope+"/"):""}${tableBase}.js`);
|
|
15
15
|
if (!fs.existsSync(scriptPath)) throw new Error(`Script file missing: ${scriptPath}`);
|
|
16
16
|
if (!fs.statSync(scriptPath).isFile()) throw new Error(`Script is not a file: ${scriptPath}`);
|
|
17
|
-
const params = [ "node_modules/.bin/snLint", scriptPath ];
|
|
17
|
+
const params = [ "node_modules/.bin/snLint", scriptPath, "-c" ];
|
|
18
18
|
if (altscope) params.splice(1, 0, "-a", altscope);
|
|
19
19
|
if (process.env.DEBUG) {
|
|
20
20
|
params.splice(1, 0, "-d");
|
|
@@ -25,6 +25,6 @@ const childProcess = require("child_process").
|
|
|
25
25
|
|
|
26
26
|
it(altscope ? `${tableBase} | ${altscope}` : tableBase, () => {
|
|
27
27
|
if (shouldSucceed && childProcess.status !== 0
|
|
28
|
-
|| !shouldSucceed && childProcess.status
|
|
28
|
+
|| !shouldSucceed && childProcess.status !== 1)
|
|
29
29
|
throw new Error(`Failed with code ${childProcess.status}`);
|
|
30
30
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admc.com/eslintplugin-sn-test",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.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": "^1.1.
|
|
31
|
+
"@admc.com/eslint-plugin-sn": "^1.1.2"
|
|
32
32
|
}
|
|
33
33
|
}
|
package/sneslintrc.json
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"no-var": "error"
|
|
51
51
|
}
|
|
52
52
|
}, { // Custom table and scope
|
|
53
|
-
"files": [ "**/custom_table/
|
|
53
|
+
"files": [ "**/custom_table/custom_alt/*.js" ],
|
|
54
54
|
"env": {"@admc.com/sn/sn_server_global": true },
|
|
55
55
|
"rules": {
|
|
56
56
|
"@admc.com/sn/invalid-table-altscope": "off",
|