@jslint-org/jslint 2024.6.28 → 2024.11.24
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 +5 -0
- package/README.md +5 -5
- package/jslint.mjs +14 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@
|
|
|
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
|
+
# v2024.11.24
|
|
11
|
+
- jslint - bugfix - Fix optional dynamic-property/function-call not recognized.
|
|
12
|
+
- quickstart - bugfix - Fix broken quickstart-jslint-in-codemirror demo.
|
|
13
|
+
- ci - Update shell-function shHttpFileServer() to auto-serve /index.html, when url-path is root /.
|
|
14
|
+
|
|
10
15
|
# v2024.6.28
|
|
11
16
|
- coverage - Fix coverage-function v8CoverageReportCreate() throwing error EINVAL in latest nodejs-security-patch, when running win32-coverage with npm.cmd.
|
|
12
17
|
- jslint - Remove unnecessary shell-function shCurlExe().
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ Douglas Crockford <douglas@crockford.com>
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
# Status
|
|
6
|
-
| Branch | [master<br>(v2024.
|
|
6
|
+
| Branch | [master<br>(v2024.11.24)](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) |
|
|
@@ -402,7 +402,7 @@ import jslint from "../jslint.mjs";
|
|
|
402
402
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.10/codemirror.css">
|
|
403
403
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.10/addon/lint/lint.css">
|
|
404
404
|
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.10/codemirror.js"></script>
|
|
405
|
-
<script defer src="https://codemirror.
|
|
405
|
+
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.10/mode/javascript/javascript.js"></script>
|
|
406
406
|
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.10/addon/lint/lint.js"></script>
|
|
407
407
|
|
|
408
408
|
<!-- Assets from jslint. -->
|
|
@@ -923,7 +923,7 @@ eval("1"); //jslint-ignore-line
|
|
|
923
923
|
- `git push upstream alpha -f`
|
|
924
924
|
- verify ci-success for upstream-branch-alpha
|
|
925
925
|
- https://github.com/jslint-org/jslint/actions
|
|
926
|
-
- goto https://github.com/jslint-org/jslint/compare/beta...kaizhu256:jslint:branch-p2024.
|
|
926
|
+
- goto https://github.com/jslint-org/jslint/compare/beta...kaizhu256:jslint:branch-p2024.11.24
|
|
927
927
|
- click `Create pull request`
|
|
928
928
|
- input `Add your description here...` with:
|
|
929
929
|
```
|
|
@@ -932,7 +932,7 @@ Fixes #xxx.
|
|
|
932
932
|
|
|
933
933
|
This PR will ...
|
|
934
934
|
|
|
935
|
-
|
|
935
|
+
This PR will additionally:
|
|
936
936
|
- <secondary-commit-message>
|
|
937
937
|
...
|
|
938
938
|
|
|
@@ -963,7 +963,7 @@ this PR will additionally:
|
|
|
963
963
|
- `git push upstream alpha -f`
|
|
964
964
|
- verify ci-success for upstream-branch-alpha
|
|
965
965
|
- https://github.com/jslint-org/jslint/actions
|
|
966
|
-
- goto https://github.com/jslint-org/jslint/compare/beta...kaizhu256:jslint:branch-v2024.
|
|
966
|
+
- goto https://github.com/jslint-org/jslint/compare/beta...kaizhu256:jslint:branch-v2024.11.24
|
|
967
967
|
- click `Create pull request`
|
|
968
968
|
- input `Add a title` with: `# v20yy.mm.dd`
|
|
969
969
|
- input `Add a description` with:
|
package/jslint.mjs
CHANGED
|
@@ -163,7 +163,7 @@ let jslint_charset_ascii = (
|
|
|
163
163
|
+ "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_"
|
|
164
164
|
+ "`abcdefghijklmnopqrstuvwxyz{|}~\u007f"
|
|
165
165
|
);
|
|
166
|
-
let jslint_edition = "v2024.
|
|
166
|
+
let jslint_edition = "v2024.11.24";
|
|
167
167
|
let jslint_export; // The jslint object to be exported.
|
|
168
168
|
let jslint_fudge = 1; // Fudge starting line and starting
|
|
169
169
|
// ... column to 1.
|
|
@@ -4698,8 +4698,7 @@ function jslint_phase3_parse(state) {
|
|
|
4698
4698
|
|
|
4699
4699
|
function infix_option_chain(left) {
|
|
4700
4700
|
const the_token = token_now;
|
|
4701
|
-
let name;
|
|
4702
|
-
name = token_nxt;
|
|
4701
|
+
let name = token_nxt;
|
|
4703
4702
|
if (
|
|
4704
4703
|
(
|
|
4705
4704
|
left.id !== "(string)"
|
|
@@ -4733,6 +4732,18 @@ function jslint_phase3_parse(state) {
|
|
|
4733
4732
|
|
|
4734
4733
|
check_left(left, the_token);
|
|
4735
4734
|
}
|
|
4735
|
+
|
|
4736
|
+
// Issue #468 - Fix optional dynamic-property/function-call not recognized.
|
|
4737
|
+
|
|
4738
|
+
if (name.id === "[" || name.id === "(") {
|
|
4739
|
+
test_cause("dyn_prop_or_call");
|
|
4740
|
+
|
|
4741
|
+
// test_cause:
|
|
4742
|
+
// ["aa?.(bb)", "infix_option_chain", "dyn_prop_or_call", "", 0]
|
|
4743
|
+
// ["aa?.[bb]", "infix_option_chain", "dyn_prop_or_call", "", 0]
|
|
4744
|
+
|
|
4745
|
+
return left;
|
|
4746
|
+
}
|
|
4736
4747
|
if (!name.identifier) {
|
|
4737
4748
|
|
|
4738
4749
|
// test_cause:
|
package/package.json
CHANGED