Environments for working with JavaScript and some of its libraries.
js2-mode
closure-glslint
Either installed via apt-get or npm.
Install the js2 environment.
js-comint
Either installed with nvm or apt-get
sudo npm -g install typescript
sudo npm -g install typescript-tools
Possibly also:
sudo npm -g install typescript-formatter
flycheck-typescript-tslint
tide
tss
typescript
typescript-mode
(setq load-path (cons YOUR_LOCAL_PATH_TO_ELISP_DIR load-path))
(load-library "js2-local")
(load-library "typescript-local")
project_root/
project_root/tsconfig.json
/scripts
/ts
/js
/tests
/ts
/js
/doc
https://basarat.gitbooks.io/typescript/content/docs/project/tsconfig.html
http://techiejs.com/Blog/Post/Leveraging-tsconfigjson-in-TypeScript-projects
https://github.com/Microsoft/TypeScript/wiki/tsconfig.json
Very basic for the above structure:
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"outDir": "scripts/js"
}
}
sudo npm -g install tslint
npm install tslint-unix-formatter
Calls to the linter should then be made with:
tslint -t unix -s ~/node_modules/tslint-unix-formatter/lib/
One can also use gjslint as this offers the fixjsstyle option.
sudo npm -g install gjslint
apt-get install closure-linter
https://github.com/Platypi/style_typescript
https://gist.github.com/aleksey-bykov/34599f736d745fee7136
JS Doc style http://usejsdoc.org/