Skip to content
This repository has been archived by the owner on Jun 6, 2018. It is now read-only.

sei40kr/better-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

better-javascript

Better JavaScript layer for Spacemacs.

Table of Contents

Description

This layer adds improvements for Spacemacs javascript layer.

Features:

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add better-javascript to the existing dotspacemacs-configuration-layers list in this file.

You will also need to install flow-bin and flow-coverage-report to use the Flow language:

$ npm install -g flow-bin flow-coverage-report

To use the auto-import feature, install import-js:

$ npm install -g import-js

To use the formatting features, install prettier and eslint-cli (eslint_d is preferred for performance):

$ npm install -g prettier eslint-cli eslint_d

To activate error checking using flycheck, install eslint-cli (eslint_d is preferred for performance):

$ npm install -g eslint-cli eslint_d

Key Bindings

Auto-import (import-js)

Key Binding Description
SPC i i import the module for the variable under the cursor
SPC i f import any missing modules and remove any modules that are not used
SPC i g go to the module of the variable under the cursor

Formatting (Prettier, ESLint)

Key Binding Description
SPC m = format code in Prettier, ESLint

Special Thanks

About

Better JavaScript layer for Spacemacs for me

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published