How to import js-modules into TypeScript file?

You can import the whole module as follows: import * as FriendCard from ‘./../pages/FriendCard’; For more details please refer the modules section of Typescript official docs. Recent Updated Solution : We need to tweak the tsconfig.json to allow JS modules import. credits to @paulmest, @ben-winding @crispen-gari solutions below. { “compilerOptions”: { “allowJs”: true } }

How can I get WebStorm to recognize Jasmine methods?

You can use predefined JS library stubs in Webstorm/PHPStorm/Idea Open File > Settings… Select Languages & Frameworks > JavaScript > Libraries Click on Download… Swich to TypeScript community stubs Find karma-jasmine (originally under the name jasmine) (If this does not work, try jasmine instead) Click on Download and Install I am using this setup with … Read more

How do I use WebStorm for Chrome Extension Development?

First Time Setup Open the Settings dialog (File > Settings) Click Languages & Frameworks > Javascript > Libraries Click Download Make sure TypeScript community stubs is selected Select chrome from the list (you can find it quickly by just typing chrome) Click Download and Install Click OK to close the Settings dialog. Steps 2-6 illustrated … Read more

How to ignore a particular directory or file for tslint?

Update for tslint v5.8.0 As mentioned by Saugat Acharya, you can now update tslint.json CLI Options: { “extends”: “tslint:latest”, “linterOptions”: { “exclude”: [ “bin”, “lib/*generated.js” ] } } More information in this pull request. This feature has been introduced with tslint 3.6 tslint \”src/**/*.ts\” -e \”**/__test__/**\” You can now add –exclude (or -e) see PR … Read more

Word wrapping in PhpStorm

For all files (default setting for opened files): Settings/Preferences → Editor → General → Use soft wraps in editor. You can now specify file names/extensions where this option will be enabled by default: For the currently opened file in the editor: menu → View → Active Editor → Use Soft Wraps (Note: I’ve assigned custom … Read more

How can I fix WebStorm warning “Unresolved function or method” for “require” (Firefox Add-on SDK)

Do you mean that require() is not resolved? You need to either add require.js to your project or enable Node.js Globals predefined library in Settings/Languages and Frameworks/JavaScript/Libraries. (Edited settings path by @yurik) In WebStorm 2016.x-2017.x: make sure that the Node.js Core library is enabled in Settings (Preferences) | Languages & Frameworks | Node.js and NPM … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)