Skip to content

Instantly share code, notes, and snippets.

@iSkore
Last active September 1, 2016 18:46
Show Gist options
  • Save iSkore/9e5e7749b557842c3412055768c110e3 to your computer and use it in GitHub Desktop.
Save iSkore/9e5e7749b557842c3412055768c110e3 to your computer and use it in GitHub Desktop.
WebStorm's a wild animal. Here's how to tame it.

Settings

  • Editor -> Colors & Fonts -> Copy Scheme and change font to Source Code Pro

  • Keymap -> Run -> ⌘-R

  • Languages & Frameworks -> JavaScript -> Language version ECMAScript 6 & Prefer Strict mode

  • Languages & Frameworks -> JavaScript -> Code Quality Tools -> JSHint -> Use .jshintrc

.jshintrc

{
    "mocha": true,
    "freeze": true,
    "browserify": true,
    "strict": true,
    "worker": true,
    "scripturl": true,
    "latedef": "nofunc",
    "onevar": true,
    "node": true,
    "maxstatements": 25,
    "futurehostile": true,
    "noarg": true,
    "unused": true,
    "esnext": true,
    "eqeqeq": true,
    "nocomma": true,
    "devel": true,
    "maxdepth": 5,
    "jquery": true,
    "browser": true,
    "debug": true,
    "maxparams": 5,
    "undef": true,
    "globalstrict": true,
    "maxcomplexity": 20,
    "typed": true,
    "nonew": true,
    "forin": false,
    "shadow": true
}
  • Languages & Frameworks -> Node.js and NPM -> Enable Core Library
'use strict';
//@formatter:off
/* jshint esversion: 6 */
/* jshint expr: true */
/* jshint -W079 */
/* jshint -W083 */
/* jshint -W116 */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment