After reading about javascript unit testing / bdd in VS I found that you could use a combination of:  - ReSharper - support for PhantomJS headless + Jasmine/QUnit - Testr - mock Require dependencies   I used Jasmine in a test script and was able to s...
I'm getting message from resharper as condition is always true for following code  if (filters == "answers" || "solution") {  }   what's happening here in this code?...
How can I stop ReSharper formatting from turning this:  define(['Spec'], function (Spec) {  });   into this:  define(['Spec'],     function(Spec) {      });   I've tried various combinations of settings but have not hit upon the r...
I was reading the TypeScript Deep Dive and I see that both let and const are block scoped, which is great. Obviously, a const cannot be changed (it is immutable). But why is ReSharper is encouraging me to change as many lets to const as I can? I'...
What is the correct way of code comments in Javascript - is the same syntax as in Java? And which tools actually would take advantage of these comments:    /*   * Add an element to the group   * @param {Object}  overlayElement   * @param {Object} [el...
I am using an ASP MVC project. Both the /Content and the /Script folder has a Kendo subfolder which contains enormous sized files. As a consequence when I am using say a simple ReSharper parameter rename refactor on a controller's action method R...
After updating TypeScript to version 1.7 (the latest version at this time) I've been seeing Resharper point out errors, for example when using namespace, const and let, even though they should be supported by this version of TypeScript.  For exam...
I have this line in my code  <script src="@Url.Content("~/Scripts/jquery-1.7.2.min.js")" type="text/javascript"> </script>   and this part of it  jquery-1.7.2.min.js   gets highlighted by Visual Studio with the err...
My IDE is visual studio 2015 with Resharper 9.2, I want the javascript object array initializer automatically formated like this  var  x = [{    a: 1,    b: 2  },{    a: 3,    b: 4  }];   I want the round and square brackets together, Any ideas how c...
I've created some custom live templates with Reshaper 5.0 for C# files and they work fine. They also work for for JavaScript inside a .aspx file too.  However, when I try to use my custom live template shortcut keystrokes inside a .js file, which...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.