[SERVER-22546] Enable more ESLint rules Created: 09/Feb/16  Updated: 21/Nov/16  Resolved: 10/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:
Related
is related to SERVER-22539 Add an ESLint configuration file Closed
Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: TIG 10 (02/19/16)
Participants:

 Description   

Further ESLint rules to enable:

  1. no-cond-assign
  2. no-console
  3. no-control-regex
  4. no-debugger
  5. no-div-regex
  6. no-dupe-args
  7. no-dupe-keys
  8. no-duplicate-case
  9. no-empty-character-class
  10. no-empty-label
  11. no-empty-pattern
  12. no-ex-assign
  13. no-extra-boolean-cast
  14. no-fallthrough
  15. no-func-assign
  16. no-invalid-regexp
  17. no-negated-in-lhs
  18. no-obj-calls
  19. no-octal
  20. no-regex-spaces
  21. no-return-assign
  22. no-script-url
  23. no-self-compare
  24. no-sequences
  25. no-sparse-arrays
  26. no-unexpected-multiline
  27. no-unreachable
  28. no-useless-call
  29. no-useless-concat (required to fit code under 100 columns)
  30. no-with
  31. use-isnan
  32. valid-typeof


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

Author:

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

Message: SERVER-22546 Enable more ESLint rules

(cherry picked from commit c3b777da1c2cfbc1badbb7b226f2ec6d4f326b05)
Branch: v3.2
https://github.com/mongodb/mongo/commit/3e0a5f24bf547e792436e693631d587aed044b41

Comment by Githook User [ 10/Feb/16 ]

Author:

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

Message: SERVER-22546 Enable more ESLint rules
Branch: master
https://github.com/mongodb/mongo/commit/c3b777da1c2cfbc1badbb7b226f2ec6d4f326b05

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