LoginSignup
6
0

More than 5 years have passed since last update.

JS Binで'use esnext option'とwarningが表示される場合の対処方法

Last updated at Posted at 2017-03-22

概要

JS BinでES2015のシンタックスでコードを書こうとすると以下のようにwarningが表示されます。

Kobito.TxJNd3.png

対処方法

右上のAccountからPreferencesを選択します。Lintingという項目があるのでJSHintのsettingsをクリックするとフォームが開きます。

Kobito.JEcjzr.png

そこに以下の設定を追加します。

{
  "esnext": true
}

Kobito.KFM3h1.png

これでwarningが表示されなくなります。Lintingの設定を細かく指定できるのは良いですね。

参考

6
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
0