You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
問題 Cygwin 版 Emacs で flycheck を使用して JavaScript のシンタックスチェックができるようにするまでには、いくつもの問題があり一筋縄では行きませんでした。 ここでは、試行錯誤して辿り着いた一つの方法を紹介します。なお、僕の環境は gnupack を使用しています。 実際の環境: OS: Windows 7 Emacs: gnupack_devel-12.03-2015.02.01 flycheck: flycheck-20150412.242 Node.js: v0.12.2 JSHint: jshint v2.6.3 flycheck のインストール flycheck のインストールは普通に行います。例えば package.el でインストールするには以下のようにします。 M-x package-refresh-contents M-x package
今開いているファイルの親ディレクトリをどんどん辿っていって node_modules ディレクトリを探して、その中の node_modules/.bin/eslint や node_modules/.bin/jshint が存在するなら、それを flycheck の時に使うようにする。 (defun kui/traverse-parents-for (filename &optional dirname) "Find FILENAME from parent directories of the current buffer file or DIRNAME" (if dirname (let ((path (concat (file-name-as-directory dirname) filename))) (if (file-exists-p path) path (if (strin
BabelはES6のコードをES5にコンパイルしてくれるツールです。以前は6to5と呼ばれていました。ECMAScript 6(ES6)が正式にECMAScript 2015(ES2015)という名前になったのでツール名も変更になったようです。ただ略称の方はES6で定着しているのでこのまま使いそうです。io.jsではKoaのジェネレーター関数などES6の機能を--harmmonyフラグを付けなくても使えます。せっかくなのですべてES6で書きたいところです。io.jsではV8に追加されるES6の機能を積極的にサポートしていますが、全部ではないので現状はBabelでES5に変換する必要があります。 プロジェクト 適当なディレクトリにプロジェクトを作成します。リポジトリはこちらです。 $ cd ~/node_apps/docker-koa-babel-hook $ tree . ├── Dock
Configuring emacs to use eslint and babel with flycheck for javascript and React.js JSX ES6 and JSX are awesome, but because they are relatively new, there is little documentation on how to set them up with your environment. After spending time tracking down all the pieces and configuring for use with emacs, I created this article to help those that will follow. It enables realtime linting of JS a
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く