@jslint-org/jslint 2022.7.20 → 2022.11.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 CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  # Todo
4
4
  - doc - document supported/unsupported es6+ features
5
- - cli - remove cli-option `--mode-vim-plugin`
6
5
  - coverage - add macros `/*coverage-disable*/` and `/*coverage-enable*/`.
7
6
  - jslint - add html and css linting back into jslint.
8
7
  - jslint - add new warning requiring paren around plus-separated concatenations.
@@ -11,7 +10,16 @@
11
10
  - jslint - try to improve parser to be able to parse jquery.js without stopping.
12
11
  - jslint - unify analysis of variable-assignment/function-parameters into one function
13
12
  - jslint - add new warning "Expected Object.create(null) instead of {}"
13
+
14
+ # v2022.11.20
15
+ - ci - update ci from node-v16 to node-v18
16
+ - cli - remove deprecated cli-option `--mode-vim-plugin`
14
17
  - node - after node-v14 is deprecated, remove shell-code `export "NODE_OPTIONS=--unhandled-rejections=strict"`.
18
+ - editor - update codemirror-editor to v5.65.10
19
+ - remove obsolete help.html
20
+
21
+ # v2022.9.20
22
+ - directive - add new directive `fart` to allow complex fat-arrow
15
23
 
16
24
  # v2022.7.20
17
25
  - bugfix - warnings that should be ignored sometimes suppress legitimate warnings
package/README.md CHANGED
@@ -3,7 +3,7 @@ Douglas Crockford <douglas@crockford.com>
3
3
 
4
4
 
5
5
  # Status
6
- | Branch | [master<br>(v2022.7.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) |
6
+ | Branch | [master<br>(v2022.11.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 | [![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) |
@@ -49,6 +49,7 @@ Douglas Crockford <douglas@crockford.com>
49
49
  - [`/*jslint couch*/`](#jslint-couch)
50
50
  - [`/*jslint devel*/`](#jslint-devel)
51
51
  - [`/*jslint eval*/`](#jslint-eval)
52
+ - [`/*jslint fart*/`](#jslint-fart)
52
53
  - [`/*jslint for*/`](#jslint-for)
53
54
  - [`/*jslint getset*/`](#jslint-getset)
54
55
  - [`/*jslint indent2*/`](#jslint-indent2)
@@ -273,8 +274,8 @@ import fs from "fs";
273
274
  ```shell <!-- shRunWithScreenshotTxt .artifact/screenshot_sh_coverage_report_spawn.svg -->
274
275
  #!/bin/sh
275
276
 
276
- git clone https://github.com/mapbox/node-sqlite3 node-sqlite3-sh \
277
- --branch=v5.0.2 \
277
+ git clone https://github.com/tryghost/node-sqlite3 node-sqlite3-sh \
278
+ --branch=v5.0.11 \
278
279
  --depth=1 \
279
280
  --single-branch
280
281
 
@@ -322,8 +323,8 @@ node ../jslint.mjs \
322
323
  ```shell <!-- shRunWithScreenshotTxt .artifact/screenshot_js_coverage_report_spawn.svg -->
323
324
  #!/bin/sh
324
325
 
325
- git clone https://github.com/mapbox/node-sqlite3 node-sqlite3-js \
326
- --branch=v5.0.2 \
326
+ git clone https://github.com/tryghost/node-sqlite3 node-sqlite3-js \
327
+ --branch=v5.0.11 \
327
328
  --depth=1 \
328
329
  --single-branch
329
330
 
@@ -392,11 +393,11 @@ import jslint from "../jslint.mjs";
392
393
 
393
394
  <!-- Assets from codemirror. -->
394
395
 
395
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.5/codemirror.css">
396
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.5/addon/lint/lint.css">
397
- <script defer src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.5/codemirror.js"></script>
396
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.10/codemirror.css">
397
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.10/addon/lint/lint.css">
398
+ <script defer src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.10/codemirror.js"></script>
398
399
  <script defer src="https://codemirror.net/mode/javascript/javascript.js"></script>
399
- <script defer src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.5/addon/lint/lint.js"></script>
400
+ <script defer src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.10/addon/lint/lint.js"></script>
400
401
 
401
402
  <!-- Assets from jslint. -->
402
403
 
@@ -527,8 +528,6 @@ window.addEventListener("load", function () {
527
528
 
528
529
  - [index.html](index.html) runs the jslint.mjs function in a web page.
529
530
 
530
- - [help.html](help.html) describes JSLint's usage. Please [read it](https://jslint-org.github.io/jslint/help.html).
531
-
532
531
  JSLint can be run anywhere that JavaScript (or Java) can run.
533
532
 
534
533
  The place to express yourself in programming is in the quality of your ideas and
@@ -576,7 +575,7 @@ right so that you can focus your creative energy where it is most needed.
576
575
 
577
576
  ```js
578
577
  /*jslint bitwise*/
579
- // Allow bitwise operators.
578
+ // Allow bitwise operator.
580
579
 
581
580
  let foo = 0 | 1;
582
581
  ```
@@ -598,7 +597,7 @@ localStorage.getItem("foo");
598
597
 
599
598
  ```js
600
599
  /*jslint convert*/
601
- // Allow conversion operators.
600
+ // Allow conversion operator.
602
601
 
603
602
  let foo = new Date() + "";
604
603
  let bar = !!0;
@@ -639,6 +638,19 @@ eval("1");
639
638
 
640
639
  <br>
641
640
 
641
+ ##### `/*jslint fart*/`
642
+
643
+ ```js
644
+ /*jslint fart*/
645
+ // Allow complex fat-arrow.
646
+
647
+ let foo = async ({bar, baz}) => {
648
+ return await bar(baz);
649
+ };
650
+ ```
651
+
652
+ <br>
653
+
642
654
  ##### `/*jslint for*/`
643
655
 
644
656
  ```js
@@ -716,7 +728,7 @@ require("fs");
716
728
 
717
729
  ```js
718
730
  /*jslint nomen*/
719
- // Allow weird property names.
731
+ // Allow weird property name.
720
732
 
721
733
  let foo = {};
722
734
  foo._bar = 1;
@@ -879,7 +891,7 @@ eval("1"); //jslint-ignore-line
879
891
  <br><br>
880
892
  # License
881
893
  - JSLint is under [Unlicense License](LICENSE).
882
- - CodeMirror editor is under [MIT License](https://github.com/codemirror/CodeMirror/blob/master/LICENSE).
894
+ - CodeMirror editor is under [MIT License](https://github.com/codemirror/codemirror5/blob/d0e3b2e727c41aa4fd89fbad0adfb3815339174c/LICENSE).
883
895
  - Function `v8CoverageListMerge` is derived from [MIT Licensed v8-coverage](https://github.com/demurgos/v8-coverage/blob/73446087dc38f61b09832c9867122a23f8577099/ts/LICENSE.md).
884
896
 
885
897
  <!--