@jslint-org/jslint 2023.5.23 → 2023.6.21

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 CHANGED
@@ -7,6 +7,9 @@
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.6.21
11
+ - doc - Update docs in README.md.
12
+
10
13
  # v2023.5.23
11
14
  - jslint - Check exported properties are ordered.
12
15
  - jslint - Add grammar for "export async function ...".
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.5.23)](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) |
6
+ | Branch | [master<br>(v2023.6.21)](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 | [![ci](https://github.com/jslint-org/jslint/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/jslint-org/jslint/actions?query=branch%3Amaster) | [![ci](https://github.com/jslint-org/jslint/actions/workflows/ci.yml/badge.svg?branch=beta)](https://github.com/jslint-org/jslint/actions?query=branch%3Abeta) | [![ci](https://github.com/jslint-org/jslint/actions/workflows/ci.yml/badge.svg?branch=alpha)](https://github.com/jslint-org/jslint/actions?query=branch%3Aalpha) |
9
9
  | Coverage | [![coverage](https://jslint-org.github.io/jslint/branch-master/.artifact/coverage/coverage_badge.svg)](https://jslint-org.github.io/jslint/branch-master/.artifact/coverage/index.html) | [![coverage](https://jslint-org.github.io/jslint/branch-beta/.artifact/coverage/coverage_badge.svg)](https://jslint-org.github.io/jslint/branch-beta/.artifact/coverage/index.html) | [![coverage](https://jslint-org.github.io/jslint/branch-alpha/.artifact/coverage/coverage_badge.svg)](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 variables.
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 -f origin alpha alpha:beta
994
+ git push origin alpha -f
995
+ git push origin alpha:beta
977
996
  shMyciUpdate
978
- git push -f upstream alpha
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
@@ -165,7 +165,7 @@ let jslint_charset_ascii = (
165
165
  + "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_"
166
166
  + "`abcdefghijklmnopqrstuvwxyz{|}~\u007f"
167
167
  );
168
- let jslint_edition = "v2023.5.23";
168
+ let jslint_edition = "v2023.6.21";
169
169
  let jslint_export; // The jslint object to be exported.
170
170
  let jslint_fudge = 1; // Fudge starting line and starting
171
171
  // ... column to 1.
@@ -3327,7 +3327,7 @@ function jslint_phase2_lex(state) {
3327
3327
  case "this": // Allow 'this'.
3328
3328
  case "trace": // Include jslint stack-trace in warnings.
3329
3329
  case "unordered": // Allow unordered cases, params, properties,
3330
- // ... and variables.
3330
+ // ... variables, and exports.
3331
3331
  case "variable": // Allow unordered const and let declarations
3332
3332
  // ... that are not at top of function-scope.
3333
3333
  case "white": // Allow messy whitespace.
package/package.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "shCiArtifactUpload": 1,
36
36
  "shCiNpmPublish": 1,
37
37
  "type": "module",
38
- "version": "2023.5.23"
38
+ "version": "2023.6.21"
39
39
  }