@admc.com/eslintplugin-sn-test 1.0.8 → 1.1.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 @@
1
+ gs.log("Helo world", "src");
@@ -1 +1 @@
1
- gs.info("scoped log");
1
+ answer = true;
@@ -0,0 +1 @@
1
+ answer = true;
@@ -0,0 +1,2 @@
1
+ const msg = "a ok";
2
+ console.info(msg + " now");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admc.com/eslintplugin-sn-test",
3
- "version": "1.0.8",
3
+ "version": "1.1.0",
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.0.32"
31
+ "@admc.com/eslint-plugin-sn": "^1.1.1"
32
32
  }
33
33
  }
package/sneslintrc.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "no-array-constructor": "error",
18
18
  "max-depth": "error",
19
19
  "dot-notation": "error",
20
- "camelcase": ["error", { "properties": "never" }],
20
+ "camelcase": ["error", { "properties": "never", "ignoreGlobals": true }],
21
21
  "no-template-curly-in-string": "error",
22
22
  "eqeqeq": "error",
23
23
  "semi": "error",
@@ -27,12 +27,12 @@
27
27
  },
28
28
  "overrides": [
29
29
  {
30
- "files": ["**/@(sa_pattern_prepost_script|sys_script_fix|sys_script|sys_script_include|sys_auto_script|sys_ws_operation|sys_web_service)/@(global|scoped)/*.js"],
31
- "rules": {
32
- "camelcase": ["error", { "properties": "never", "ignoreGlobals": true }]
33
- }
30
+ "files": [
31
+ "**//@(global|scoped)/*.js",
32
+ "**/sys_ui_action/@(iso|noniso)_@(global|scoped)action/*.js"
33
+ ]
34
34
  },{ // ES6 overrides
35
- "files": ["**/@(sys|catalog|expert)_script_client/@(noniso|iso)/*.js"],
35
+ "files": [ "**/@(noniso|iso)/*.js" ],
36
36
  "rules": {
37
37
  "strict": ["error", "safe"],
38
38
  "prefer-arrow-callback": "error",
@@ -40,7 +40,27 @@
40
40
  "no-useless-rename": "error",
41
41
  "no-var": "error",
42
42
  "prefer-template": "error"
43
+ },
44
+ "files": [ "**/sys_ui_script/*.js" ],
45
+ "rules": {
46
+ "strict": ["error", "safe"],
47
+ "prefer-arrow-callback": "error",
48
+ "object-shorthand": "error",
49
+ "no-useless-rename": "error",
50
+ "no-var": "error"
43
51
  }
52
+ }, { // Custom table and scope
53
+ "files": [ "**/custom_table/custalt/*.js" ],
54
+ "env": {"@admc.com/sn/sn_server_global": true },
55
+ "rules": {
56
+ "@admc.com/sn/invalid-table-altscope": "off",
57
+ "@admc.com/sn/log-global-2-args": "error",
58
+ "@admc.com/sn/no-log-scoped": "error"
59
+ }
44
60
  }
45
- ]
61
+ ],
62
+ "settings": {
63
+ "customTables": ["custom_table"],
64
+ "customAlts": ["custom_alt"]
65
+ }
46
66
  }