@jslint-org/jslint 2021.10.20 → 2021.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/.npmignore +6 -0
- package/CHANGELOG.md +14 -4
- package/README.md +69 -22
- package/jslint.mjs +264 -201
- package/package.json +13 -2
- package/.gitconfig +0 -25
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -23
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -18
- package/.github/ISSUE_TEMPLATE/website_issue.md +0 -12
- package/.github/workflows/ci.yml +0 -68
- package/.github/workflows/on_pull_request.yml +0 -39
- package/.github/workflows/publish.yml +0 -68
- package/.gitignore +0 -18
- package/asset_codemirror_rollup.js +0 -11329
- package/asset_font_daley_bold.woff2 +0 -0
- package/asset_image_folder_open_solid.svg +0 -1
- package/asset_image_github_brands.svg +0 -1
- package/asset_image_jslint_vim_plugin.png +0 -0
- package/asset_image_json_160.svg +0 -104
- package/asset_image_logo_512.svg +0 -39
- package/help.html +0 -1232
- package/index.html +0 -1512
- package/jslint_ci.sh +0 -2749
- package/test.mjs +0 -937
- package/test_coverage_merge_data.json +0 -17877
package/package.json
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
+
"bin": {
|
|
3
|
+
"jslint": "./jslint.mjs"
|
|
4
|
+
},
|
|
2
5
|
"counter": 7,
|
|
3
6
|
"description": "JSLint, The JavaScript Code Quality and Coverage Tool",
|
|
4
|
-
"fileCount":
|
|
7
|
+
"fileCount": 28,
|
|
8
|
+
"keywords": [
|
|
9
|
+
"coverage-report",
|
|
10
|
+
"javascript",
|
|
11
|
+
"jslint",
|
|
12
|
+
"zero-config",
|
|
13
|
+
"zero-dependency"
|
|
14
|
+
],
|
|
5
15
|
"license": "UNLICENSE",
|
|
16
|
+
"main": "jslint.mjs",
|
|
6
17
|
"name": "@jslint-org/jslint",
|
|
7
18
|
"repository": {
|
|
8
19
|
"type": "git",
|
|
@@ -12,5 +23,5 @@
|
|
|
12
23
|
"test": "node jslint.mjs v8_coverage_report=.artifact/coverage node test.mjs",
|
|
13
24
|
"test2": "sh jslint_ci.sh shCiBase"
|
|
14
25
|
},
|
|
15
|
-
"version": "2021.
|
|
26
|
+
"version": "2021.11.20"
|
|
16
27
|
}
|
package/.gitconfig
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
[branch "alpha"]
|
|
2
|
-
merge = refs/heads/alpha
|
|
3
|
-
remote = origin
|
|
4
|
-
[branch "base"]
|
|
5
|
-
merge = refs/heads/base
|
|
6
|
-
remote = origin
|
|
7
|
-
[core]
|
|
8
|
-
# autocrlf = false
|
|
9
|
-
autocrlf = input
|
|
10
|
-
bare = false
|
|
11
|
-
# filemode = false
|
|
12
|
-
logallrefupdates = true
|
|
13
|
-
repositoryformatversion = 0
|
|
14
|
-
[diff]
|
|
15
|
-
algorithm = histogram
|
|
16
|
-
[pull]
|
|
17
|
-
ff = only
|
|
18
|
-
[receive]
|
|
19
|
-
denyCurrentBranch = warn
|
|
20
|
-
[remote "origin"]
|
|
21
|
-
fetch = +refs/heads/*:refs/remotes/origin/*
|
|
22
|
-
url = https://github.com/user/jslint
|
|
23
|
-
[remote "upstream"]
|
|
24
|
-
fetch = +refs/heads/*:refs/remotes/upstream/*
|
|
25
|
-
url = https://github.com/jslint-org/jslint
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "\U0001F41E Bug report"
|
|
3
|
-
about: "Create a report to help us improve"
|
|
4
|
-
title: "Bug report: Your title here"
|
|
5
|
-
labels: "bug"
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
**Describe the bug**
|
|
10
|
-
1. A clear and concise description of what the bug is.
|
|
11
|
-
|
|
12
|
-
2. Jslint edition:
|
|
13
|
-
|
|
14
|
-
3. Code snippet (if applicable):
|
|
15
|
-
|
|
16
|
-
```javascript
|
|
17
|
-
/*jslint devel*/
|
|
18
|
-
console.log("hello world");
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
**Expected behavior**
|
|
23
|
-
<!-- A clear and concise description of what you expected to happen. -->
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "\U0001F680 Feature request"
|
|
3
|
-
about: "Suggest an idea for this project"
|
|
4
|
-
title: "Feature request: Your title here"
|
|
5
|
-
labels: "enhancement"
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
**Is your feature request related to a problem? Please describe.**
|
|
10
|
-
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
**Describe the solution you'd like**
|
|
14
|
-
<!-- A clear and concise description of what you want to happen. -->
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
**Describe alternatives you've considered**
|
|
18
|
-
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "\U000026D4 Website issue"
|
|
3
|
-
about: "Issue with https://www.jslint.com"
|
|
4
|
-
title: "Website issue: Your title here"
|
|
5
|
-
labels: "bug"
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
**Describe the bug**
|
|
10
|
-
1. A clear and concise description of what the bug is.
|
|
11
|
-
|
|
12
|
-
2. Screenshot (if applicable):
|
package/.github/workflows/ci.yml
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# this workflow will run nodejs coverages and tests
|
|
2
|
-
# and upload build-artifacts to branch-gh-pages
|
|
3
|
-
name: ci
|
|
4
|
-
on:
|
|
5
|
-
push:
|
|
6
|
-
branches:
|
|
7
|
-
- alpha
|
|
8
|
-
- beta
|
|
9
|
-
- master
|
|
10
|
-
- sandbox
|
|
11
|
-
workflow_dispatch:
|
|
12
|
-
branches:
|
|
13
|
-
- alpha
|
|
14
|
-
- beta
|
|
15
|
-
- master
|
|
16
|
-
- sandbox
|
|
17
|
-
jobs:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
# shCiBase - start
|
|
21
|
-
job1:
|
|
22
|
-
strategy:
|
|
23
|
-
matrix:
|
|
24
|
-
architecture:
|
|
25
|
-
# - arm64
|
|
26
|
-
- x64
|
|
27
|
-
# - x86
|
|
28
|
-
node_version:
|
|
29
|
-
- 12
|
|
30
|
-
- 14
|
|
31
|
-
- 16
|
|
32
|
-
os:
|
|
33
|
-
- macos-latest
|
|
34
|
-
- ubuntu-latest
|
|
35
|
-
- windows-latest
|
|
36
|
-
name: job1 . node . v${{ matrix.node_version }} . ${{ matrix.architecture }} . ${{ matrix.os }}
|
|
37
|
-
runs-on: ${{ matrix.os }}
|
|
38
|
-
steps:
|
|
39
|
-
# disable autocrlf in windows
|
|
40
|
-
- run: git config --global core.autocrlf false
|
|
41
|
-
# https://github.com/actions/checkout
|
|
42
|
-
- uses: actions/checkout@v2
|
|
43
|
-
# https://github.com/actions/cache
|
|
44
|
-
- uses: actions/cache@v2
|
|
45
|
-
with:
|
|
46
|
-
key: ${{ matrix.architecture }}-${{ matrix.node_version }}-${{ matrix.os }}-${{ hashFiles('./package.json') }}
|
|
47
|
-
path: .cache
|
|
48
|
-
# https://github.com/actions/setup-node
|
|
49
|
-
- uses: actions/setup-node@v2
|
|
50
|
-
with:
|
|
51
|
-
node-version: ${{ matrix.node_version }}
|
|
52
|
-
architecture: ${{ matrix.architecture }}
|
|
53
|
-
# fetch jslint_ci.sh from trusted source
|
|
54
|
-
- run: git fetch origin alpha && git checkout origin/alpha .ci.sh jslint_ci.sh
|
|
55
|
-
# run nodejs coverages and tests
|
|
56
|
-
- run: sh jslint_ci.sh shCiBase
|
|
57
|
-
# shCiBase - end
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
# shCiArtifactUpload - start
|
|
61
|
-
# fetch jslint_ci.sh from trusted source
|
|
62
|
-
- run: git fetch origin alpha && git checkout origin/alpha .ci.sh jslint_ci.sh
|
|
63
|
-
# upload build-artifacts to branch-gh-pages
|
|
64
|
-
- run: sh jslint_ci.sh shCiArtifactUpload
|
|
65
|
-
env:
|
|
66
|
-
CI_NODE_VERSION_ARCH_PLATFORM: v14.x64.linux
|
|
67
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
68
|
-
# shCiArtifactUpload - end
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# this workflow will run nodejs coverages and tests
|
|
2
|
-
name: on-pull-request
|
|
3
|
-
on:
|
|
4
|
-
- pull_request
|
|
5
|
-
- workflow_dispatch
|
|
6
|
-
# shCiBase - start
|
|
7
|
-
jobs:
|
|
8
|
-
build:
|
|
9
|
-
runs-on: ${{ matrix.os }}
|
|
10
|
-
strategy:
|
|
11
|
-
matrix:
|
|
12
|
-
architecture:
|
|
13
|
-
# - arm64
|
|
14
|
-
- x64
|
|
15
|
-
# - x86
|
|
16
|
-
node_version:
|
|
17
|
-
- 12
|
|
18
|
-
- 14
|
|
19
|
-
- 16
|
|
20
|
-
os:
|
|
21
|
-
- macos-latest
|
|
22
|
-
- ubuntu-latest
|
|
23
|
-
- windows-latest
|
|
24
|
-
name: node . v${{ matrix.node_version }} . ${{ matrix.architecture }} . ${{ matrix.os }}
|
|
25
|
-
steps:
|
|
26
|
-
# disable autocrlf in windows
|
|
27
|
-
- run: git config --global core.autocrlf false
|
|
28
|
-
# https://github.com/actions/checkout
|
|
29
|
-
- uses: actions/checkout@v2
|
|
30
|
-
# https://github.com/actions/setup-node
|
|
31
|
-
- uses: actions/setup-node@v2
|
|
32
|
-
with:
|
|
33
|
-
node-version: ${{ matrix.node_version }}
|
|
34
|
-
architecture: ${{ matrix.architecture }}
|
|
35
|
-
# fetch jslint_ci.sh from trusted source
|
|
36
|
-
- run: git fetch origin alpha && git checkout origin/alpha jslint_ci.sh
|
|
37
|
-
# run nodejs coverages and tests
|
|
38
|
-
- run: sh jslint_ci.sh shCiBase
|
|
39
|
-
# shCiBase - end
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# Publishing packages to npm and GitHub Packages
|
|
2
|
-
# https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-to-npm-and-github-packages
|
|
3
|
-
name: publish
|
|
4
|
-
on:
|
|
5
|
-
release:
|
|
6
|
-
types: [created]
|
|
7
|
-
workflow_dispatch:
|
|
8
|
-
branches:
|
|
9
|
-
- alpha
|
|
10
|
-
- beta
|
|
11
|
-
- master
|
|
12
|
-
- sandbox
|
|
13
|
-
jobs:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
# npm publish - start
|
|
17
|
-
build:
|
|
18
|
-
strategy:
|
|
19
|
-
matrix:
|
|
20
|
-
architecture:
|
|
21
|
-
# - arm64
|
|
22
|
-
- x64
|
|
23
|
-
# - x86
|
|
24
|
-
node_version:
|
|
25
|
-
# - 12
|
|
26
|
-
- 14
|
|
27
|
-
# - 16
|
|
28
|
-
os:
|
|
29
|
-
# - macos-latest
|
|
30
|
-
- ubuntu-latest
|
|
31
|
-
# - windows-latest
|
|
32
|
-
name: job1 . node . v${{ matrix.node_version }} . ${{ matrix.architecture }} . ${{ matrix.os }}
|
|
33
|
-
runs-on: ${{ matrix.os }}
|
|
34
|
-
permissions:
|
|
35
|
-
contents: read
|
|
36
|
-
packages: write
|
|
37
|
-
steps:
|
|
38
|
-
|
|
39
|
-
# Setup .npmrc file to publish to GitHub Packages
|
|
40
|
-
- run: rm -f /home/runner/work/_temp/.npmrc
|
|
41
|
-
- uses: actions/checkout@v2
|
|
42
|
-
- uses: actions/setup-node@v2
|
|
43
|
-
with:
|
|
44
|
-
node-version: ${{ matrix.node_version }}
|
|
45
|
-
architecture: ${{ matrix.architecture }}
|
|
46
|
-
registry-url: 'https://npm.pkg.github.com'
|
|
47
|
-
# Defaults to the user or organization that owns the workflow file
|
|
48
|
-
# scope: '@octocat'
|
|
49
|
-
# Publish to GitHub Packages
|
|
50
|
-
- run: npm install
|
|
51
|
-
- run: npm publish --access public
|
|
52
|
-
env:
|
|
53
|
-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
54
|
-
|
|
55
|
-
# Setup .npmrc file to publish to npm
|
|
56
|
-
- run: rm -f /home/runner/work/_temp/.npmrc
|
|
57
|
-
- uses: actions/checkout@v2
|
|
58
|
-
- uses: actions/setup-node@v2
|
|
59
|
-
with:
|
|
60
|
-
node-version: ${{ matrix.node_version }}
|
|
61
|
-
architecture: ${{ matrix.architecture }}
|
|
62
|
-
registry-url: 'https://registry.npmjs.org'
|
|
63
|
-
# Publish to npm
|
|
64
|
-
- run: npm install
|
|
65
|
-
- run: npm publish --access public
|
|
66
|
-
env:
|
|
67
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
68
|
-
# npm publish - end
|