@jslint-org/jslint 2021.11.20 → 2022.3.30
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 +2 -2
- package/README.md +6 -6
- package/jslint.mjs +400 -265
- package/jslint_wrapper_cjs.cjs +22 -0
- package/package.json +9 -3
- package/CHANGELOG.md +0 -226
- package/jslint.vim +0 -26
package/.npmignore
CHANGED
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ Douglas Crockford <douglas@crockford.com>
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
# Status
|
|
6
|
-
| Branch | [master<br>(
|
|
6
|
+
| Branch | [master<br>(v2022.3.30)](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) |
|
|
@@ -35,7 +35,7 @@ Douglas Crockford <douglas@crockford.com>
|
|
|
35
35
|
- [To create V8 coverage report from Node.js / Npm program in shell:](#to-create-v8-coverage-report-from-nodejs--npm-program-in-shell)
|
|
36
36
|
- [To create V8 coverage report from Node.js / Npm program in javascript:](#to-create-v8-coverage-report-from-nodejs--npm-program-in-javascript)
|
|
37
37
|
|
|
38
|
-
7. [
|
|
38
|
+
7. [Quickstart JSLint in Vim](#quickstart-jslint-in-vim)
|
|
39
39
|
- [To run JSLint in Vim:](#to-run-jslint-in-vim)
|
|
40
40
|
|
|
41
41
|
8. [Description](#description)
|
|
@@ -331,19 +331,19 @@ import jslint from "../jslint.mjs";
|
|
|
331
331
|
|
|
332
332
|
|
|
333
333
|
<br><br>
|
|
334
|
-
#
|
|
334
|
+
# Quickstart JSLint in Vim
|
|
335
335
|
|
|
336
336
|
|
|
337
337
|
<br><br>
|
|
338
338
|
### To run JSLint in Vim:
|
|
339
|
-
1. Download and save [`jslint.mjs`](https://www.jslint.com/jslint.mjs), [`
|
|
340
|
-
2. Add vim-command `:source ~/.vim/
|
|
339
|
+
1. Download and save [`jslint.mjs`](https://www.jslint.com/jslint.mjs), [`jslint_wrapper_vim.vim`](https://www.jslint.com/jslint_wrapper_vim.vim) to directory `~/.vim/`
|
|
340
|
+
2. Add vim-command `:source ~/.vim/jslint_wrapper_vim.vim` to file `~/.vimrc`
|
|
341
341
|
3. Vim can now jslint files (via nodejs):
|
|
342
342
|
- with vim-command `:SaveAndJslint`
|
|
343
343
|
- with vim-key-combo `<Ctrl-S> <Ctrl-J>`
|
|
344
344
|
- screenshot
|
|
345
345
|
|
|
346
|
-

|
|
347
347
|
|
|
348
348
|
|
|
349
349
|
<br><br>
|