Skip to content

Commit

Permalink
fix: Updated Jshint to 2.13.5 (#4911)
Browse files Browse the repository at this point in the history
* update jshint.js to 2.13.5

* add instruction on how to update `jshint` lib
  • Loading branch information
mkslanc committed Aug 30, 2022
1 parent 3e14988 commit 2401fbd
Show file tree
Hide file tree
Showing 2 changed files with 3,026 additions and 2,465 deletions.
5,475 changes: 3,011 additions & 2,464 deletions lib/ace/mode/javascript/jshint.js

Large diffs are not rendered by default.

16 changes: 15 additions & 1 deletion tool/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,18 @@ node add_mode.js ModeName "extension1|extension2|^FullName"

```
node tmlanguage.js ./templates/dummy.JSON-tmLanguage
```
```

# update_deps.js
To update `jshint` to new version:
1. Clone last version from https://github.com/jshint/jshint
2. Replace all `lodash` with `underscore` in requires in `jshint/src/*.js`
3. Add `_.slice = require("lodash.slice");` to `src/scope-manager.js` after `var _ = ...`
4. Add `_.clone = require("lodash.clone");` to `src/jshint.js` after `var _ = ...`
5. Add ```
"underscore": latest
"lodash.clone": "^4.5.0",
"lodash.slice": "^4.2.0"
``` to `package.json`, remove `lodash` and run `npm i`
6. Change in `ace/tool/update_deps.js` jshint path `deps.jshint.browserify.path` with your path to changed jshint
7. Run `node update_deps.js jshint`

0 comments on commit 2401fbd

Please sign in to comment.