@admc.com/eslintplugin-sn-test 1.1.0 → 1.1.3

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 @@
1
+ console.info(action.getGlideURI());
@@ -0,0 +1 @@
1
+ console.info(action.getGlideURI());
@@ -0,0 +1,4 @@
1
+ (function() {
2
+ "use strict";
3
+ console.info("all is well");
4
+ })(window);
@@ -0,0 +1 @@
1
+ gs.log(action.getGlideURI(), "src");
@@ -0,0 +1 @@
1
+ gs.info(action.getGlideURI());
@@ -0,0 +1,4 @@
1
+ (function() {
2
+ "use strict";
3
+ console.info("all is well");
4
+ })(value);
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 === 0)
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.0",
3
+ "version": "1.1.3",
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.1"
31
+ "@admc.com/eslint-plugin-sn": "^1.1.8"
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/custalt/*.js" ],
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",