doomemacs/modules/lang/javascript
Brandon Orther dd97e10aa0 Remove flycheck js2 errors if eslint available.
Flycheck has it's own trailing command and semicolon warning that was
conflicting with the eslint settings. Now it disables those warnings if
eslint.js is setup for flycheck.
2017-09-30 02:20:25 -07:00
..
+screeps.el
autoload.el
config.el Remove flycheck js2 errors if eslint available. 2017-09-30 02:20:25 -07:00
packages.el
README.org

:lang javascript

This module adds Javascript support.

  • Code completion (tern)
  • REPL support (nodejs-repl)
  • Refactoring commands (js2-refactor)
  • Syntax checking (flycheck)
  • Browser code injection with skewer-mode
  • Coffeescript & JSX support
  • Jump-to-definitions and references support (xref)

Table of Contents   TOC

Install

Node & NPM

To get started with Javascript, you'll need node and its package manager, NPM, installed.

MacOS

brew install node

Arch Linux

sudo pacman --needed --noconfirm -S nodejs npm

Dependencies

This module optionally requires tern for code completion.

npm -g install tern

Appendix

Commands

command key / ex command description
+javascript/repl :repl Open the NodeJS REPL (or send the current selection to it)
+javascript/skewer-this-buffer SPC m S Attaches a browser to the current buffer