@admc.com/eslintplugin-sn-test 3.6.1 → 3.6.2
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/.eslintrc.json +10 -1
- package/.gitattributes +18 -18
- package/bad1Scripts/scoped-es12/sys_ux_data_broker_transform/topLevelArrow.js +5 -0
- package/goodScripts/all/sys_ux_client_script/arrowFnNoParen.js +5 -0
- package/goodScripts/all/sys_ux_client_script/arrowNoParam.js +5 -0
- package/goodScripts/scoped-es12/sys_ux_data_broker_transform/internalArrow.js +5 -0
- package/package.json +1 -1
- package/sneslintrc.json +5 -0
package/.eslintrc.json
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"no-eval": "warn",
|
|
36
36
|
"no-extra-label": "error",
|
|
37
37
|
"no-extra-bind": "error",
|
|
38
|
-
"no-else-return": "error",
|
|
38
|
+
"no-else-return": ["error", {"allowElseIf": false}],
|
|
39
39
|
"no-array-constructor": "warn",
|
|
40
40
|
"new-cap": "error",
|
|
41
41
|
"max-depth": "warn",
|
|
@@ -48,6 +48,13 @@
|
|
|
48
48
|
"no-constructor-return": "error",
|
|
49
49
|
"no-constant-binary-expression": "error",
|
|
50
50
|
"array-callback-return": ["error", { "checkForEach": true }],
|
|
51
|
+
"no-unused-vars": ["error", {
|
|
52
|
+
"args": "all",
|
|
53
|
+
"argsIgnorePattern": "^_?dummy",
|
|
54
|
+
"caughtErrors": "all",
|
|
55
|
+
"caughtErrorsIgnorePattern": "^_?dummy"
|
|
56
|
+
}],
|
|
57
|
+
"no-eq-null": "error",
|
|
51
58
|
|
|
52
59
|
// Post-ES6
|
|
53
60
|
"no-var": "error",
|
|
@@ -63,6 +70,8 @@
|
|
|
63
70
|
"require-atomic-updates": "error",
|
|
64
71
|
"no-unused-private-class-members": "error",
|
|
65
72
|
"no-promise-executor-return": "error",
|
|
73
|
+
"prefer-rest-params": "error",
|
|
74
|
+
"prefer-spread": "error",
|
|
66
75
|
|
|
67
76
|
// formatting
|
|
68
77
|
"comma-spacing": "warn",
|
package/.gitattributes
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
* text=auto
|
|
2
2
|
|
|
3
|
-
*.bash eol=lf
|
|
4
|
-
*.sh eol=lf
|
|
5
|
-
*.ksh eol=lf
|
|
6
|
-
*.csh eol=lf
|
|
7
|
-
*.pem eol=lf
|
|
8
|
-
*.cmd eol=crlf
|
|
9
|
-
*.bat eol=crlf
|
|
10
|
-
*.BAT eol=crlf
|
|
11
|
-
*.CMD eol=crlf
|
|
12
|
-
*.dsp eol=crlf
|
|
13
|
-
*.sln eol=crlf
|
|
14
|
-
*.vcproj eol=crlf
|
|
15
|
-
*.reg eol=crlf
|
|
3
|
+
*.bash text eol=lf
|
|
4
|
+
*.sh text eol=lf
|
|
5
|
+
*.ksh text eol=lf
|
|
6
|
+
*.csh text eol=lf
|
|
7
|
+
*.pem text eol=lf
|
|
8
|
+
*.cmd text eol=crlf
|
|
9
|
+
*.bat text eol=crlf
|
|
10
|
+
*.BAT text eol=crlf
|
|
11
|
+
*.CMD text eol=crlf
|
|
12
|
+
*.dsp text eol=crlf
|
|
13
|
+
*.sln text eol=crlf
|
|
14
|
+
*.vcproj text eol=crlf
|
|
15
|
+
*.reg text eol=crlf
|
|
16
16
|
|
|
17
17
|
*.PNG -text
|
|
18
18
|
*.png -text
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
*.list text
|
|
53
53
|
*.text text
|
|
54
54
|
*.tpl text
|
|
55
|
-
*.dsv lf
|
|
56
|
-
*.html lf
|
|
55
|
+
*.dsv text eol=lf
|
|
56
|
+
*.html text eol=lf
|
|
57
57
|
*.ent text
|
|
58
58
|
*.xhtml text
|
|
59
59
|
*.dtd text
|
|
@@ -97,8 +97,8 @@ makefile text
|
|
|
97
97
|
*.csv text
|
|
98
98
|
*.shtml text
|
|
99
99
|
*.htm text
|
|
100
|
-
*.js lf
|
|
101
|
-
*.jsm lf
|
|
100
|
+
*.js text eol=lf
|
|
101
|
+
*.jsm text eol=lf
|
|
102
102
|
*.sql text
|
|
103
103
|
*.isq text
|
|
104
104
|
*.nsq text
|
|
@@ -112,6 +112,6 @@ makefile text
|
|
|
112
112
|
*.xsl text
|
|
113
113
|
*.xslt text
|
|
114
114
|
*.dtd text
|
|
115
|
-
*.json lf
|
|
115
|
+
*.json text eol=lf
|
|
116
116
|
*.md text
|
|
117
117
|
LICENSE text
|
package/package.json
CHANGED
package/sneslintrc.json
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"eqeqeq": "error",
|
|
23
23
|
"semi": "error",
|
|
24
24
|
"no-extra-parens": "error",
|
|
25
|
+
"no-eq-null": "error",
|
|
25
26
|
"@admc.com/sn/prefer-array-iterator": "error",
|
|
26
27
|
"@admc.com/sn/no-init-emptystring": "error"
|
|
27
28
|
},
|
|
@@ -39,6 +40,8 @@
|
|
|
39
40
|
"no-useless-rename": "error",
|
|
40
41
|
"no-var": "error",
|
|
41
42
|
"prefer-template": "error",
|
|
43
|
+
"prefer-rest-params": "error",
|
|
44
|
+
"prefer-spread": "error",
|
|
42
45
|
"@admc.com/sn/no-client-gr": "error"
|
|
43
46
|
}
|
|
44
47
|
}, { // ES 12 overrides
|
|
@@ -49,6 +52,8 @@
|
|
|
49
52
|
"object-shorthand": "error",
|
|
50
53
|
"no-useless-rename": "error",
|
|
51
54
|
"no-var": "error",
|
|
55
|
+
"prefer-rest-params": "error",
|
|
56
|
+
"prefer-spread": "error",
|
|
52
57
|
"prefer-template": "error"
|
|
53
58
|
}
|
|
54
59
|
}, { // Overriding for ES12 IIFE scriptlets}
|