[SERVER-22340] Fix JS lint errors in src/mongo/shell & src/mongo/scripting with ESLint --fix Created: 28/Jan/16  Updated: 18/Nov/16  Resolved: 05/Feb/16

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.2.4, 3.3.2

Type: Task Priority: Major - P3
Reporter: Kamran K. Assignee: Michael Grundy
Resolution: Done Votes: 0
Labels: test-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-22469 Format JS code with approved style in... Closed
Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: TIG 10 (02/19/16)
Participants:

 Description   

ESLint can automatically fix some linting errors with --fix. We should fix the following categories of errors to make our JavaScript work better with token-based formatters like clang-format:

  1. no-extra-semi
  2. semi

To make it easier to review the changes and parallelize work, this task will be scoped to the JS in src/mongo/shell & src/mongo/scripting.



 Comments   
Comment by Githook User [ 17/Feb/16 ]

Author:

{u'username': u'mgrundy', u'name': u'Mike Grundy', u'email': u'michael.grundy@10gen.com'}

Message: SERVER-22340 Fix JS lint errors in src/mongo/ with ESLint --fix

(cherry picked from commit c3996780b76316793758b43fa1fca5b9d0857b6c)

Conflicts:
src/mongo/shell/servers.js
src/mongo/shell/utils.js
Branch: v3.2
https://github.com/mongodb/mongo/commit/c44cfb555964c8bb71282cc3d34aac73da2e7494

Comment by Githook User [ 05/Feb/16 ]

Author:

{u'username': u'mgrundy', u'name': u'Mike Grundy', u'email': u'michael.grundy@10gen.com'}

Message: SERVER-22340 Fix JS lint errors in src/mongo/ with ESLint --fix
Branch: master
https://github.com/mongodb/mongo/commit/c3996780b76316793758b43fa1fca5b9d0857b6c

Generated at Thu Feb 08 04:00:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.