diff --git a/.ci.sh b/.ci.sh
index c3f8da3a7..2fb2af41c 100644
--- a/.ci.sh
+++ b/.ci.sh
@@ -1,6 +1,6 @@
shArtifactUploadCustom() {(set -e
# this function will custom-upload build-artifacts to branch-gh-pages
- # screenshot asset-image-logo
+ # screenshot asset_image_logo
shImageLogoCreate &
# screenshot install
shBrowserScreenshot \
@@ -63,10 +63,10 @@ echo "\
});
}());
' "$@" # '
- # screenshot asset-image-logo-512.png
+ # screenshot asset_image_logo_512.png
shBrowserScreenshot .jslint_report.html \
--window-size=512x512 \
- -screenshot=.build/screenshot-install-cli-report.png
+ -screenshot=.build/screenshot_install_cli_report.png
# seo - inline css-assets and invalidate cached-assets
node --input-type=module -e '
import moduleFs from "fs";
@@ -74,7 +74,7 @@ import moduleFs from "fs";
let cacheKey = Math.random().toString(36).slice(-4);
let fileDict = {};
await Promise.all([
- "asset-codemirror-rollup.css",
+ "asset_codemirror_rollup.css",
"index.html",
"jslint.mjs"
].map(async function (file) {
@@ -88,11 +88,11 @@ import moduleFs from "fs";
// inline css-assets
fileDict["index.html"] = fileDict["index.html"].replace((
- "\n\n"
+ "\n\n"
), function () {
return (
"\n\n"
);
});
diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug_report.md
similarity index 100%
rename from .github/ISSUE_TEMPLATE/bug-report.md
rename to .github/ISSUE_TEMPLATE/bug_report.md
diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature_request.md
similarity index 100%
rename from .github/ISSUE_TEMPLATE/feature-request.md
rename to .github/ISSUE_TEMPLATE/feature_request.md
diff --git a/.github/ISSUE_TEMPLATE/website-issue.md b/.github/ISSUE_TEMPLATE/website_issue.md
similarity index 100%
rename from .github/ISSUE_TEMPLATE/website-issue.md
rename to .github/ISSUE_TEMPLATE/website_issue.md
diff --git a/.github/workflows/on-pull-request.yml b/.github/workflows/on_pull_request.yml
similarity index 100%
rename from .github/workflows/on-pull-request.yml
rename to .github/workflows/on_pull_request.yml
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1114c4933..506a40c4d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,7 +3,6 @@
# Todo
- cli - add cli-command `--mode-coverage-report`
- coverage - add macros `/*coverage-disable*/` and `/*coverage-enable*/`.
-- fs - rename files with dashes to files with underscore
- jslint - add `for...of` syntax support.
- jslint - add html and css linting back into jslint.
- jslint - add new warning requiring paren around comma-separated concatenations.
@@ -13,6 +12,7 @@
- node - after node-v14 is deprecated, remove shell-code `export "NODE_OPTIONS=--unhandled-rejections=strict"`.
# v2021.10.1-beta
+- fs - rename files with dashes to files with underscore
- cli - add cli-option `--mode-report`
- fs - merge file browser.mjs into index.html
- jslint - disable linting of embedded javascript in markdown-files
diff --git a/README.md b/README.md
index 101e866ae..d6b68564d 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-[](https://github.com/jslint-org/jslint)
+[](https://github.com/jslint-org/jslint)
# JSLint, The JavaScript Code Quality Tool
@@ -13,8 +13,8 @@ Douglas Crockford
|--:|:--:|:--:|:--:|
| 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) |
| Coverage | [![coverage](https://jslint-org.github.io/jslint/branch-master/.build/coverage/coverage-badge.svg)](https://jslint-org.github.io/jslint/branch-master/.build/coverage/index.html) | [![coverage](https://jslint-org.github.io/jslint/branch-beta/.build/coverage/coverage-badge.svg)](https://jslint-org.github.io/jslint/branch-beta/.build/coverage/index.html) | [![coverage](https://jslint-org.github.io/jslint/branch-alpha/.build/coverage/coverage-badge.svg)](https://jslint-org.github.io/jslint/branch-alpha/.build/coverage/index.html) |
-| Demo | [](https://jslint-org.github.io/jslint/branch-master/index.html) | [](https://jslint-org.github.io/jslint/branch-beta/index.html) | [](https://jslint-org.github.io/jslint/branch-alpha/index.html) |
-| Artifacts | [](https://github.com/jslint-org/jslint/tree/gh-pages/branch-master/.build) | [](https://github.com/jslint-org/jslint/tree/gh-pages/branch-beta/.build) | [](https://github.com/jslint-org/jslint/tree/gh-pages/branch-alpha/.build) |
+| Demo | [](https://jslint-org.github.io/jslint/branch-master/index.html) | [](https://jslint-org.github.io/jslint/branch-beta/index.html) | [](https://jslint-org.github.io/jslint/branch-alpha/index.html) |
+| Artifacts | [](https://github.com/jslint-org/jslint/tree/gh-pages/branch-master/.build) | [](https://github.com/jslint-org/jslint/tree/gh-pages/branch-beta/.build) | [](https://github.com/jslint-org/jslint/tree/gh-pages/branch-alpha/.build) |
# Table of Contents
@@ -32,7 +32,7 @@ Douglas Crockford
# Web Demo
- https://www.jslint.com
-[![screenshot](https://jslint-org.github.io/jslint/branch-beta/.build/screenshot-browser-_2fjslint_2fbranch-beta_2findex.html.png)](https://jslint-org.github.io/jslint/index.html)
+[![screenshot](https://jslint-org.github.io/jslint/branch-beta/.build/screenshot_browser__2fjslint_2fbranch-beta_2findex.html.png)](https://jslint-org.github.io/jslint/index.html)
# Web Demo Archived
@@ -43,17 +43,17 @@ Douglas Crockford
# JSLint Install
### To install, just download https://www.jslint.com/jslint.mjs and save to file:
-```shell
+```shell
#!/bin/sh
curl -L https://www.jslint.com/jslint.mjs > jslint.mjs
```
- shell output
-![screenshot.svg](https://jslint-org.github.io/jslint/branch-beta/.build/screenshot-install-download.svg)
+![screenshot.svg](https://jslint-org.github.io/jslint/branch-beta/.build/screenshot_install_download.svg)
### To run `jslint.mjs` from command-line:
-```shell
+```shell
#!/bin/sh
printf "console.log('hello world');\n" > hello.js
@@ -62,10 +62,10 @@ node jslint.mjs hello.js
```
- shell output
-![screenshot.svg](https://jslint-org.github.io/jslint/branch-beta/.build/screenshot-install-cli-file.svg)
+![screenshot.svg](https://jslint-org.github.io/jslint/branch-beta/.build/screenshot_install_cli_file.svg)
### To import `jslint.mjs` as es-module:
-```shell
+```shell
#!/bin/sh
node --input-type=module -e '
@@ -87,22 +87,22 @@ result.warnings.forEach(function ({
```
- shell output
-![screenshot.svg](https://jslint-org.github.io/jslint/branch-beta/.build/screenshot-install-import.svg)
+![screenshot.svg](https://jslint-org.github.io/jslint/branch-beta/.build/screenshot_install_import.svg)
### To jslint entire directory from command-line:
-```shell
+```shell
#!/bin/sh
node jslint.mjs .
```
- shell output
-![screenshot.svg](https://jslint-org.github.io/jslint/branch-beta/.build/screenshot-install-cli-dir.svg)
+![screenshot.svg](https://jslint-org.github.io/jslint/branch-beta/.build/screenshot_install_cli_dir.svg)
# JSLint Report
### To create human-readable, html-report from command-line:
-```shell
+```shell
#!/bin/sh
printf "function foo() {console.log('hello world');}\n" > hello.js
@@ -111,15 +111,15 @@ node jslint.mjs --mode-report hello.js
```
- shell output
-![screenshot.svg](https://jslint-org.github.io/jslint/branch-beta/.build/screenshot-install-cli-report.svg)
+![screenshot.svg](https://jslint-org.github.io/jslint/branch-beta/.build/screenshot_install_cli_report.svg)
- screenshot file `.jslint_report.html`
-![screenshot.png](https://jslint-org.github.io/jslint/branch-beta/.build/screenshot-install-cli-report.png)
+![screenshot.png](https://jslint-org.github.io/jslint/branch-beta/.build/screenshot_install_cli_report.png)
### To create human-readable, html-report programmatically:
-```shell
+```shell
#!/bin/sh
node --input-type=module -e '
@@ -141,7 +141,7 @@ import fs from "fs";
```
- shell output
-![screenshot.svg](https://jslint-org.github.io/jslint/branch-beta/.build/screenshot-install-import-report.svg)
+![screenshot.svg](https://jslint-org.github.io/jslint/branch-beta/.build/screenshot_install_import_report.svg)
# JSLint Vim Plugin
@@ -153,7 +153,7 @@ import fs from "fs";
- with vim-key-combo ` `
- screenshot
-![screenshot.png](asset-image-jslint-vim-plugin.png)
+![screenshot.png](asset_image_jslint_vim_plugin.png)
# Description
@@ -183,13 +183,13 @@ right so that you can focus your creative energy where it is most needed.
# Package Listing
-![screenshot-files.svg](https://jslint-org.github.io/jslint/branch-beta/.build/screenshot-files.svg)
+![screenshot_files.svg](https://jslint-org.github.io/jslint/branch-beta/.build/screenshot_files.svg)
# Changelog
- [Full CHANGELOG.md](CHANGELOG.md)
-![screenshot-changelog.svg](https://jslint-org.github.io/jslint/branch-beta/.build/screenshot-changelog.svg)
+![screenshot_changelog.svg](https://jslint-org.github.io/jslint/branch-beta/.build/screenshot_changelog.svg)
# License
diff --git a/asset-codemirror-rollup.css b/asset_codemirror_rollup.css
similarity index 100%
rename from asset-codemirror-rollup.css
rename to asset_codemirror_rollup.css
diff --git a/asset-codemirror-rollup.js b/asset_codemirror_rollup.js
similarity index 100%
rename from asset-codemirror-rollup.js
rename to asset_codemirror_rollup.js
diff --git a/asset-font-daley-bold.woff2 b/asset_font_daley_bold.woff2
similarity index 100%
rename from asset-font-daley-bold.woff2
rename to asset_font_daley_bold.woff2
diff --git a/asset-font-programma-bold.woff2 b/asset_font_programma_bold.woff2
similarity index 100%
rename from asset-font-programma-bold.woff2
rename to asset_font_programma_bold.woff2
diff --git a/asset-image-folder-open-solid.svg b/asset_image_folder_open_solid.svg
similarity index 100%
rename from asset-image-folder-open-solid.svg
rename to asset_image_folder_open_solid.svg
diff --git a/asset-image-github-brands.svg b/asset_image_github_brands.svg
similarity index 100%
rename from asset-image-github-brands.svg
rename to asset_image_github_brands.svg
diff --git a/asset-image-jslint-vim-plugin.png b/asset_image_jslint_vim_plugin.png
similarity index 100%
rename from asset-image-jslint-vim-plugin.png
rename to asset_image_jslint_vim_plugin.png
diff --git a/asset-image-json-160.gif b/asset_image_json_160.gif
similarity index 100%
rename from asset-image-json-160.gif
rename to asset_image_json_160.gif
diff --git a/asset-image-logo-512.svg b/asset_image_logo_512.svg
similarity index 100%
rename from asset-image-logo-512.svg
rename to asset_image_logo_512.svg
diff --git a/function.html b/function.html
index 4f1016450..e1b8213a9 100644
--- a/function.html
+++ b/function.html
@@ -18,7 +18,7 @@
JSLint: jslint function