[gjs/ewlsh/whatwg-timers: 2/3] maint: Remove rule about no arrow functions in describe()




commit 9a6ea70f33070fbabc1f1226f3bb4ad5bd1f5e27
Author: Evan Welsh <contact evanwelsh com>
Date:   Fri Jan 14 12:09:13 2022 -0800

    maint: Remove rule about no arrow functions in describe()
    
    This is fine according to Jasmine's own FAQ:
    https://jasmine.github.io/pages/faq.html#fn-or-arrow

 installed-tests/js/.eslintrc.yml | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/installed-tests/js/.eslintrc.yml b/installed-tests/js/.eslintrc.yml
index bbf09ab2..64281541 100644
--- a/installed-tests/js/.eslintrc.yml
+++ b/installed-tests/js/.eslintrc.yml
@@ -14,8 +14,6 @@ rules:
     - error
     - selector: CallExpression[callee.name="it"] > ArrowFunctionExpression
       message: Arrow functions can mess up some Jasmine APIs. Use function () instead
-    - selector: CallExpression[callee.name="describe"] > ArrowFunctionExpression
-      message: Arrow functions can mess up some Jasmine APIs. Use function () instead
     - selector: CallExpression[callee.name="beforeEach"] > ArrowFunctionExpression
       message: Arrow functions can mess up some Jasmine APIs. Use function () instead
     - selector: CallExpression[callee.name="afterEach"] > ArrowFunctionExpression


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]