Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Add ability to ban global functions #1408

Merged
merged 55 commits into from
Sep 6, 2016
Merged

Add ability to ban global functions #1408

merged 55 commits into from
Sep 6, 2016

Commits on Jul 17, 2016

  1. Extend ban rule to also bn global methods.

    Nina Hartmann committed Jul 17, 2016
    Configuration menu
    Copy the full SHA
    13b6c3d View commit details
    Browse the repository at this point in the history
  2. Formatting in ban rule test

    Nina Hartmann committed Jul 17, 2016
    Configuration menu
    Copy the full SHA
    9cfc5b7 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2016

  1. Add linterOptions to tslint.json (palantir#1403)

    * Add linterOptions to tslint.json
    
    - only enable type checking during tests when typeCheck: true is configured
    - fixes palantir#1402
    
    * Code style
    adidahiya authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    6b056cc View commit details
    Browse the repository at this point in the history
  2. Add new Rule: arrow-parens (palantir#1384)

    * Add new Rule: arrow-parens
    
    * Add test
    
    * modify some documentations
    YuichiNukiyama authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    6776fc3 View commit details
    Browse the repository at this point in the history
  3. Core object-literal-key-quotes rule (palantir#1364)

    * Core quote-props rule
    
    * Tweaks for code review
    
    * rename
    danvk authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    139cbfa View commit details
    Browse the repository at this point in the history
  4. Implement rule to forbid return statements in finally blocks palantir…

    …#1097 (palantir#1349)
    
    * Implement rule to forbid return statements in finally blocks palantir#1097
    
    * explore the try statement fully to pick up violations in nested scopes
    
    * switch to a scope aware rule walker to reduce number of passes over the AST
    
    * Add support for other control flow statements in finally blocks (break, continue, throws)
    
    * improve the rationale description for the no unsafe finally rule
    
    * rename rule to no-unsafe-finally to be inline with eslint
    
    * add new rule to latest config
    
    * pull out helper functions from the walker class.
    
    * fix tslint violations (which didn't occur locally)
    lowkay authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    3ae205e View commit details
    Browse the repository at this point in the history
  5. task(formatter): added stylish formatter (palantir#1406)

    * task(formatter): added stylish formatter
    
    * Support non-colors terminal in tests
    
    * fix(stylish): lint quotes
    
    * fix(stylish) 4 spaces indentation
    
    * fix(stylish): correct strpad amount
    
    * fix(stylish): test tuple position
    gjuchault authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    be635b3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2f71497 View commit details
    Browse the repository at this point in the history
  7. New Rule: max-file-line-count (palantir#1360)

    ChrisMBarr authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    aa23cbb View commit details
    Browse the repository at this point in the history
  8. no-for-in-array rule (palantir#1394)

    * no-for-in-array rule
    
    * Change array check
    
    * Add typeCheck linterOption
    danvk authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    192a49c View commit details
    Browse the repository at this point in the history
  9. Better ban rule failure messages & allows for additional custom messa…

    …ges (palantir#1385)
    
    * Updating ban rule to have better messages, and an optional explanation message as a 3rd parameter
    ChrisMBarr authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    89259bb View commit details
    Browse the repository at this point in the history
  10. Add no-for-in-array to readme (palantir#1436)

    jkillian authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    87cc5ac View commit details
    Browse the repository at this point in the history
  11. Use correct type for tagged string function parameter (palantir#1433)

    This allows the code to compile correctly with TS 1.8.x and TS 2.x
    
    See microsoft/TypeScript#9855 also
    jkillian authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    6ab4298 View commit details
    Browse the repository at this point in the history
  12. Prepare release v3.14.0 (palantir#1440)

    jkillian authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    ac6a682 View commit details
    Browse the repository at this point in the history
  13. Add new rule adjacent-overload-signatures (palantir#1426)

    Raghav Katyal authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    ccef77f View commit details
    Browse the repository at this point in the history
  14. Added additional type constraint for findFormatter function parameter…

    … name (string | Function) (palantir#1443)
    DovydasNavickas authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    efa4733 View commit details
    Browse the repository at this point in the history
  15. Add text replacement fixes for rules (palantir#1423)

    * Created IFix and IReplacement structures for representing fixes
      * programWalker includes createFix and createReplacement
    * Added optional parameter to createFailure for suggesting fixes
    * Modified semicolon rule to suggest fixes (add / remove semicolon)
    * Modified testing to check against a file with fixes applied
      * If there is a ".ts.fix" file, then the test will take the first suggested fix and apply to the test file (without markup) and compare
    
    Addresses palantir#561
    ScottSWu authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    96300b1 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    6641be4 View commit details
    Browse the repository at this point in the history
  17. Update "typedef" rule metadata (palantir#1459)

    glen-84 authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    a024dce View commit details
    Browse the repository at this point in the history
  18. Remove list of rules from README (palantir#1467)

    jkillian authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    a6d1331 View commit details
    Browse the repository at this point in the history
  19. Add new file-header rule to enforce headers matched by regexp (pala…

    …ntir#1441)
    
    - Checks for comments at the very beginning of files
    - Ignores #!
    - Matches comment contents with header regexp
    ScottSWu authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    b542265 View commit details
    Browse the repository at this point in the history
  20. Fix typo in whitespace rule enum (palantir#1468)

    Adrian Pacała authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    7f5360e View commit details
    Browse the repository at this point in the history
  21. Adding "allow-declarations" to only-arrow-functions (palantir#1452)

    Josh Goldberg authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    c4686d7 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    d2ce671 View commit details
    Browse the repository at this point in the history
  23. Rename a function in commentFormatRule.ts

    adidahiya authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    c10d5fb View commit details
    Browse the repository at this point in the history
  24. Require semicolons for type aliases (palantir#1475)

    Andy authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    fccfb9a View commit details
    Browse the repository at this point in the history
  25. Revert "Require semicolon for type alias" (palantir#1477)

    jkillian authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    cc081c8 View commit details
    Browse the repository at this point in the history
  26. Improve an error message on invalid source file (palantir#1480)

    Partially addresses palantir#516.
    rhysd authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    887962a View commit details
    Browse the repository at this point in the history
  27. README updates

    adidahiya authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    dca0b04 View commit details
    Browse the repository at this point in the history
  28. Fixes for no-shadowed-variable rule (palantir#1482)

    IllusionMH authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    6812c9a View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    ff8da91 View commit details
    Browse the repository at this point in the history
  30. arrow-parens: fix async case (palantir#1479)

    YuichiNukiyama authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    2bbb8da View commit details
    Browse the repository at this point in the history
  31. Move docs from gh-pages to docs/ directory (palantir#1494)

    * Ignore docs directory when publishing to npm
    
    * Add all docs content from gh-pages branch to docs/ directory
    
    * Update docs on docs
    
    * Update docs build script
    jkillian authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    d65c137 View commit details
    Browse the repository at this point in the history
  32. Object literal shorthand rule (palantir#1488)

    danvk authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    e5201c4 View commit details
    Browse the repository at this point in the history
  33. [docs] Fix object-literal-shorthand metadata name

    jkillian authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    c53534e View commit details
    Browse the repository at this point in the history
  34. Prepare Release v3.15.0 (palantir#1502)

    jkillian authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    8bc6f5c View commit details
    Browse the repository at this point in the history
  35. [docs] 3.15.0 docs update (palantir#1504)

    jkillian authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    db22b96 View commit details
    Browse the repository at this point in the history
  36. v3.15.1 with updated tslint:latest config (palantir#1508)

    adidahiya authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    ded0407 View commit details
    Browse the repository at this point in the history
  37. Require semicolon for function declaration with no body (palantir#1447)

    Andy authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    f585cbc View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    873fec1 View commit details
    Browse the repository at this point in the history
  39. Fix lint failures from TSLint 3.15 (palantir#1511)

    jkillian authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    28a7933 View commit details
    Browse the repository at this point in the history
  40. Require semicolon for type alias (palantir#1478)

    Andy authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    22ce5fc View commit details
    Browse the repository at this point in the history
  41. Add ArrayType rule to enforce 'T[]' or 'Array<T>' (palantir#1498)

    * Add ArrayType to SyntaxWalker
    ScottSWu authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    d3a9b41 View commit details
    Browse the repository at this point in the history
  42. Added JSX spread attribute visitor to SyntaxWalker (palantir#1518)

    bolatovumar authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    d04d475 View commit details
    Browse the repository at this point in the history
  43. Fix wrong PR number in CHANGELOG.md (palantir#1525)

    rail44 authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    b618945 View commit details
    Browse the repository at this point in the history
  44. Docs update (palantir#1527)

    * Remove docs/_site files that shouldn't be checked in
    
    * gitignore files that shoudln't be checked in
    
    * Don't tie site to a specific version of ruby
    
    * Add note that type info is required for some rules
    jkillian authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    ca67559 View commit details
    Browse the repository at this point in the history
  45. Obey object-literal-sort-keys rule (palantir#1528)

    bolatovumar authored and Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    554fc2d View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    5640168 View commit details
    Browse the repository at this point in the history
  47. Create a global-ban rule to ban global methods.

    Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    4c3edd8 View commit details
    Browse the repository at this point in the history
  48. Damn. Fix the test.

    Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    ea1bee2 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    6b1c75a View commit details
    Browse the repository at this point in the history
  50. Formatting in global-ban rule test

    Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    a5f7600 View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    6bd9cb5 View commit details
    Browse the repository at this point in the history
  52. Merge remote-tracking branch 'upstream/master' into 327

    Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    0e21886 View commit details
    Browse the repository at this point in the history
  53. Remove globalBan rule (was another approach - accidently merged into …

    …branch)
    Nina Hartmann committed Aug 31, 2016
    Configuration menu
    Copy the full SHA
    c2482c4 View commit details
    Browse the repository at this point in the history