@jslint-org/jslint 2023.5.23 → 2023.8.20
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/CHANGELOG.md +7 -0
- package/LICENSE +0 -2
- package/README.md +30 -6
- package/jslint.mjs +2 -4
- package/jslint_wrapper_cjs.cjs +0 -2
- package/jslint_wrapper_vscode.js +0 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@
|
|
|
7
7
|
- jslint - add new warning requiring paren around plus-separated concatenations.
|
|
8
8
|
- jslint - try to improve parser to be able to parse jquery.js without stopping.
|
|
9
9
|
|
|
10
|
+
# v2023.8.20
|
|
11
|
+
- ci - Remove ci for nodejs-v19, and add ci for nodejs-v20.
|
|
12
|
+
- ci - Remove broken-links to unlicense.org, failing http-link-check.
|
|
13
|
+
|
|
14
|
+
# v2023.6.21
|
|
15
|
+
- doc - Update docs in README.md.
|
|
16
|
+
|
|
10
17
|
# v2023.5.23
|
|
11
18
|
- jslint - Check exported properties are ordered.
|
|
12
19
|
- jslint - Add grammar for "export async function ...".
|
package/LICENSE
CHANGED
|
@@ -20,5 +20,3 @@ IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
|
20
20
|
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
21
21
|
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
22
|
OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
-
|
|
24
|
-
For more information, please refer to <https://unlicense.org/>
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ Douglas Crockford <douglas@crockford.com>
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
# Status
|
|
6
|
-
| Branch | [master<br>(v2023.
|
|
6
|
+
| Branch | [master<br>(v2023.8.20)](https://github.com/jslint-org/jslint/tree/master) | [beta<br>(Web Demo)](https://github.com/jslint-org/jslint/tree/beta) | [alpha<br>(Development)](https://github.com/jslint-org/jslint/tree/alpha) |
|
|
7
7
|
|--:|:--:|:--:|:--:|
|
|
8
8
|
| CI | [](https://github.com/jslint-org/jslint/actions?query=branch%3Amaster) | [](https://github.com/jslint-org/jslint/actions?query=branch%3Abeta) | [](https://github.com/jslint-org/jslint/actions?query=branch%3Aalpha) |
|
|
9
9
|
| Coverage | [](https://jslint-org.github.io/jslint/branch-master/.artifact/coverage/index.html) | [](https://jslint-org.github.io/jslint/branch-beta/.artifact/coverage/index.html) | [](https://jslint-org.github.io/jslint/branch-alpha/.artifact/coverage/index.html) |
|
|
@@ -813,7 +813,7 @@ Error
|
|
|
813
813
|
|
|
814
814
|
```js
|
|
815
815
|
/*jslint unordered*/
|
|
816
|
-
// Allow unordered cases, params, properties, and
|
|
816
|
+
// Allow unordered cases, params, properties, variables, and exports.
|
|
817
817
|
|
|
818
818
|
let foo = {bb: 1, aa: 0};
|
|
819
819
|
|
|
@@ -823,6 +823,11 @@ function bar({
|
|
|
823
823
|
}) {
|
|
824
824
|
return aa + bb;
|
|
825
825
|
}
|
|
826
|
+
|
|
827
|
+
export {
|
|
828
|
+
foo,
|
|
829
|
+
bar
|
|
830
|
+
};
|
|
826
831
|
```
|
|
827
832
|
|
|
828
833
|
<br>
|
|
@@ -918,6 +923,7 @@ eval("1"); //jslint-ignore-line
|
|
|
918
923
|
- click `New pull request`
|
|
919
924
|
- click `base repository: jslint-org/jslint base:beta`
|
|
920
925
|
- click `head repository: kaizhu256/jslint compare:branch-v20yy.mm.dd`
|
|
926
|
+
- verify `commit into jslint-org:beta`
|
|
921
927
|
- click `Create pull request`
|
|
922
928
|
- verify ci-success for pull-request
|
|
923
929
|
- https://github.com/jslint-org/jslint/actions/workflows/on_pull_request.yml
|
|
@@ -931,13 +937,22 @@ git diff alpha..upstream/beta
|
|
|
931
937
|
git reset upstream/beta
|
|
932
938
|
git push origin alpha -f
|
|
933
939
|
git push origin alpha:beta
|
|
940
|
+
shMyciUpdate
|
|
934
941
|
git push upstream alpha -f
|
|
935
|
-
git push origin :branch-v20yy.mm.dd -f
|
|
936
942
|
```
|
|
937
943
|
- verify ci-success for origin-branch-alpha
|
|
938
944
|
- https://github.com/kaizhu256/jslint/actions/workflows/ci.yml
|
|
939
945
|
- verify ci-success for upstream-branch-alpha
|
|
940
946
|
- https://github.com/jslint-org/jslint/actions/workflows/ci.yml
|
|
947
|
+
- click `Delete branch`
|
|
948
|
+
```shell
|
|
949
|
+
git push origin beta:master
|
|
950
|
+
git push upstream beta:master
|
|
951
|
+
```
|
|
952
|
+
- verify ci-success for origin-branch-master
|
|
953
|
+
- https://github.com/kaizhu256/jslint/actions/workflows/ci.yml
|
|
954
|
+
- verify ci-success for upstream-branch-master
|
|
955
|
+
- https://github.com/jslint-org/jslint/actions/workflows/ci.yml
|
|
941
956
|
|
|
942
957
|
|
|
943
958
|
<br><br>
|
|
@@ -954,6 +969,7 @@ git push origin :branch-v20yy.mm.dd -f
|
|
|
954
969
|
- copy-paste release notes from CHANGELOG.md
|
|
955
970
|
- click `Generate release notes`
|
|
956
971
|
- click `Set as the latest release`
|
|
972
|
+
- click `Preview` and review
|
|
957
973
|
- click `Publish release`
|
|
958
974
|
- verify ci-success for upstream-branch-publish
|
|
959
975
|
- https://github.com/jslint-org/jslint/actions/workflows/ci.yml
|
|
@@ -964,6 +980,7 @@ git push origin :branch-v20yy.mm.dd -f
|
|
|
964
980
|
### pull-request merge
|
|
965
981
|
- find highest issue-number at https://github.com/jslint-org/jslint/issues/, and add +1 to it for PR-xxx
|
|
966
982
|
- verify `commit into jslint-org:beta`
|
|
983
|
+
- click `Create pull request`
|
|
967
984
|
- verify ci-success for pull-request
|
|
968
985
|
- https://github.com/jslint-org/jslint/actions/workflows/on_pull_request.yml
|
|
969
986
|
- click `Rebase and merge`
|
|
@@ -971,12 +988,19 @@ git push origin :branch-v20yy.mm.dd -f
|
|
|
971
988
|
- https://github.com/jslint-org/jslint/actions/workflows/ci.yml
|
|
972
989
|
```shell
|
|
973
990
|
git fetch upstream beta
|
|
974
|
-
git diff upstream/beta
|
|
991
|
+
git diff alpha..upstream/beta
|
|
992
|
+
# verify no diff between alpha..upstream/beta
|
|
975
993
|
git reset upstream/beta
|
|
976
|
-
git push
|
|
994
|
+
git push origin alpha -f
|
|
995
|
+
git push origin alpha:beta
|
|
977
996
|
shMyciUpdate
|
|
978
|
-
git push
|
|
997
|
+
git push upstream alpha -f
|
|
979
998
|
```
|
|
999
|
+
- verify ci-success for origin-branch-alpha
|
|
1000
|
+
- https://github.com/kaizhu256/jslint/actions/workflows/ci.yml
|
|
1001
|
+
- verify ci-success for upstream-branch-alpha
|
|
1002
|
+
- https://github.com/jslint-org/jslint/actions/workflows/ci.yml
|
|
1003
|
+
- click `Delete branch`
|
|
980
1004
|
|
|
981
1005
|
|
|
982
1006
|
<br><br>
|
package/jslint.mjs
CHANGED
|
@@ -25,8 +25,6 @@
|
|
|
25
25
|
// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
26
26
|
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
27
27
|
// OTHER DEALINGS IN THE SOFTWARE.
|
|
28
|
-
//
|
|
29
|
-
// For more information, please refer to <https://unlicense.org/>
|
|
30
28
|
|
|
31
29
|
|
|
32
30
|
// jslint(source, option_dict, global_list) is a function that takes 3
|
|
@@ -165,7 +163,7 @@ let jslint_charset_ascii = (
|
|
|
165
163
|
+ "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_"
|
|
166
164
|
+ "`abcdefghijklmnopqrstuvwxyz{|}~\u007f"
|
|
167
165
|
);
|
|
168
|
-
let jslint_edition = "v2023.
|
|
166
|
+
let jslint_edition = "v2023.8.20";
|
|
169
167
|
let jslint_export; // The jslint object to be exported.
|
|
170
168
|
let jslint_fudge = 1; // Fudge starting line and starting
|
|
171
169
|
// ... column to 1.
|
|
@@ -3327,7 +3325,7 @@ function jslint_phase2_lex(state) {
|
|
|
3327
3325
|
case "this": // Allow 'this'.
|
|
3328
3326
|
case "trace": // Include jslint stack-trace in warnings.
|
|
3329
3327
|
case "unordered": // Allow unordered cases, params, properties,
|
|
3330
|
-
// ... and
|
|
3328
|
+
// ... variables, and exports.
|
|
3331
3329
|
case "variable": // Allow unordered const and let declarations
|
|
3332
3330
|
// ... that are not at top of function-scope.
|
|
3333
3331
|
case "white": // Allow messy whitespace.
|
package/jslint_wrapper_cjs.cjs
CHANGED
|
@@ -22,8 +22,6 @@
|
|
|
22
22
|
// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
23
23
|
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
24
24
|
// OTHER DEALINGS IN THE SOFTWARE.
|
|
25
|
-
//
|
|
26
|
-
// For more information, please refer to <https://unlicense.org/>
|
|
27
25
|
|
|
28
26
|
|
|
29
27
|
/*jslint beta, node*/
|
package/jslint_wrapper_vscode.js
CHANGED
|
@@ -22,8 +22,6 @@
|
|
|
22
22
|
// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
23
23
|
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
24
24
|
// OTHER DEALINGS IN THE SOFTWARE.
|
|
25
|
-
//
|
|
26
|
-
// For more information, please refer to <https://unlicense.org/>
|
|
27
25
|
|
|
28
26
|
|
|
29
27
|
/*jslint beta, node*/
|
package/package.json
CHANGED