Skip to content

Releases: jslint-org/jslint

v2022.7.20 - fix bug where directive "//jslint-ignore-lines" would suppress legitimate warnings

21 Jul 03:57
906526b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2022.6.21...v2022.7.20

v2022.6.21 - add new directive "subscript" to play nice with Google Closure Compiler

22 Jun 14:21
790f640
Compare
Choose a tag to compare

What's Changed

  • directive - add new directive subscript for linting of scripts targeting Google Closure Compiler by @kaizhu256 in #404
    • warning - relax warning about missing catch in try...finally statement
    • jslint - allow aliases evil, nomen for jslint-directives eval, name, respectively for backwards-compat
    • bugfix - fix broken codemirror example
  • bugfix - fix jslint not-recognizing option-chaining when comparing operands of binary operator by @kaizhu256 in #403
  • bugfix - fix expression after "await" mis-identified as statement by @kaizhu256 in #405
    • allow array-literals to directly call [...].flat() and [...].flatMap()
  • v2022.6.21 by @kaizhu256 in #406

Full Changelog: v2022.5.20...v2022.6.21

v2022.5.20 - add glob wildcards `*, */**, ?, [...]` to exclude/include files in v8-coverage-report

21 May 01:13
33cca73
Compare
Choose a tag to compare

What's Changed

  • coverage-report - disable default-coverage of directory node_modules, but allow override with cli-option --include-node-modules=1
  • coverage-report - add function globExclude() to revamp coverage-report to exclude files using glob-pattern-matching
  • add codemirror-example-file jslint_wrapper_codemirror.html
  • update codemirror-editor to v5.65.3
  • wrapper - add jslint-addon for codemirror
  • allow jslint.mjs to auto-export itself to globalThis when given search-param ?window_jslint=1
  • wrapper - add jslint-extension for vscode
  • bugfix - fix jslint falsely believing megastring literals 0 and 1 are similar
  • bugfix - fix function jstestOnExit() from exiting prematurely and suppressing additional error-messages

Full Changelog: v2022.3.30...v2022.5.20

v2022.3.30 - add numeric-separator support

31 Mar 03:17
8598a8a
Compare
Choose a tag to compare

What's Changed

  • website - use localStorage to persist jslint-options selected in ui
  • website - add optional debug-mode to use sessionStorage to persist jslint-globals and jslint-source from ui
  • jslint - add numeric-separator support
  • jslint - move regexp-literals to module-level so they are explicitly cached, to improve performance
  • ci - add check for package.json.fileCount

Full Changelog: v2022.2.20...v2022.3.30

v2022.2.20 - cleanup fat-arrow related warnings

20 Feb 23:16
6b5180d
Compare
Choose a tag to compare

What's Changed

  • test - migrate all tests to use jstestDescribe(), jstestIt()
  • fs - rename jslint-wrapper-files to jslint_wrapper_xxx.xxx
  • bugfix - fix issue #382 - make fart-related warnings more readable
  • bugfix - fix issue #382 - fix warnings against destructured fart
  • bugfix - fix issue #379 - warn against naked-statement in fart.
  • update commonjs-wrapper jslint.cjs to load jslint in strict-mode.

Full Changelog: v2021.12.20...v2022.2.20

v2021.12.20 - publish @jslint-org/jslint as dual-module

21 Dec 00:22
dbf17df
Compare
Choose a tag to compare

What's Changed

  • npm - add file jslint.cjs so package @jslint-org/jslint can be published as dual-module
  • jslint - relax warning "function_in_loop"
  • update function assertJsonEqual to JSON.stringify 3rd param if its an object

Full Changelog: v2021.11.20...v2021.12.20

v2021.11.20 - add top-level-await support

22 Nov 01:03
5cb3799
Compare
Choose a tag to compare

What's Changed

  • jslint - add top-level-await support
  • ci - deprecate/remove jslint.cjs from ci
  • coverage - add cli-options --exclude=aa,bb, --exclude-node-modules=false, --include=aa,bb
  • coverage - dedupe coverage-logic now applied when only one script passed
  • npm - add file .npmignore
  • website - add clickable-links to editor-code in report-warnings and report-functions

Full Changelog: v2021.10.20...v2021.11.20

v2021.10.20 - add cli-command v8_coverage_report - and - npm publish to @jslint-org/jslint

20 Oct 18:16
dbb0759
Compare
Choose a tag to compare

What's Changed

  • ci - add release-trigger to publish to @jslint-org/jslint
  • bugfix - fix coverage-report having incorrect http-link to index.html
  • bugfix - fix false warning uninitialized 'bb' in code /*jslint node*/\nlet {aa:bb} = {}; bb();
  • bugfix - fix issue #358 - switch-statement crashes jslint
  • ci - cache coverage-example node-sqlite3 to speed up ci
  • ci - rename dir .build/ to .artifact/
  • ci - update shell-function shRunWithCoverage() to reduce size of string/argument passed to nodejs by using 2-space-indent
  • cli - add cli-command jslint_plugin_vim
  • cli - add cli-command v8_coverage_report
  • cli - change cli-option --mode-report to cli-command jslint_report=<filename>
  • coverage - relax requirement for coverageDir to be in cwd
  • deprecated - cli - add cli-option --mode-report
  • doc - add api-documentation
  • fs - merge file asset_codemirror_rollup.css into index.html
  • fs - merge file browser.mjs into index.html
  • fs - merge file function.html into help.html
  • fs - remove little-used font asset_font_programma_bold.woff2
  • fs - rename files with dashes to files with underscore
  • jslint - disable linting of embedded javascript in markdown-files
  • jslint - relax regexp-warning against using 'space'
  • npm - add file package.json and command npm test
  • style - change naming-convention for non-jslint-core code from underscore to camelCase
  • test - add mocha-like test-functions jstestDescribe, jstestIt

Full Changelog: v2021.9.20...v2021.10.20

v2021.9.20 - jslint - add bigint support

20 Sep 21:05
b6e5daa
Compare
Choose a tag to compare
  • jslint - add bigint support.
  • vim - add vim-plugin and file jslint.vim.
  • doc - auto-generate toc for README.md
  • jslint - rename little-used directive debug to trace to avoid confusion with non-related directive devel.

v2021.8.20 - warning - disable un-ergonomic warnings restricting directive-global (missing_browser and unexpected_directive_a).

22 Aug 05:18
5f3c02b
Compare
Choose a tag to compare
  • warning - disable un-ergonomic warnings restricting directive-global (missing_browser and unexpected_directive_a).
  • fs - rename file ci.sh to jslint_ci.sh.
  • license - add codemirror license to rollup-assets.
  • website - display number of warnings, properties, functions in report.
  • website - fix uiLoader getting hidden behind highlighted text.