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
重い腰を上げてESLintを使い始めた。そろそろv1.0.0になるらしい。これは良いなと思ったところを簡単にまとめておく。ついでに引っかかって対処にちょっと悩んだところも。既にすごく好感触なので、このまま素直に乗り換えられると良いな。 package.jsonに設定が書ける 外部設定ファイルとしては.eslinrcの他にもpackage.jsonに混ぜ込むこともできる。フィールド名はeslintConfigで、それ以下は同じ。 { "eslintConfig": { "env": { "node": true } } } 通常のnpmパッケージでは別にした方が良さそうだが、依存解決にnpmを使うだけとかコマンド作るためだけのようなプライベートなケースでは特に気にせず混ぜてしまって良さそう。 no-multi-spaces 複数の連続した空白が検出できる。 var a = 1; これで警告出
{ "env": { "node" : true, "browser" : true }, "ecmaFeatures" : { "jsx": true, "objectLiteralShorthandMethods" : true }, "plugins": [ "react" ], "rules": { "react/display-name": 1, "semi" : [2 , "never"], "strict" : false, "key-spacing" : [2, { "beforeColon" : true, "afterColon" : true, }], "no-unused-vars": [1, {"vars" : "all", "args" : "after-used"} ], "no-comma-dangle" : false } } ES6 && JSXを使うの
大本命。ESLint 2015年現在、JavaScriptのLinting toolといえばJSHintかJSLintみたいな風潮ありますが、もうESLintで行きましょう。 公式ページ github 大きな特徴 プラガブルな実装 全てのルールのON/OFFが可能 独自のルールの追加が可能 独自のフォーマッターでの出力が可能 ECMAScript 6 / React JSXをサポート Philosophy ESLintは下記のPhilosophyを掲げています。 全てはPluggableである。 Rule APIはバンドルされたものもカスタムもどっちも使える Formatterはバンドルされたものもカスタムもどっちも使える 追加のルールとフォーマッターは実行時に指定できる バンドルされたルールとフォーマットを使わなくても良い 全てのルールは 独立している 全てのルールはoffにもonにもで
Highlights This is a summary of the major changes you need to know about for this version of ESLint. More Language Options 0.15.0 adds more language options for parsing JavaScript, including: Spread operator Rest parameters Destructuring All of these options are off by default, and you can enable them in your configuration file. See Configuring ESLint for more information. Note: The AST structure
個人プロジェクトは ES6 で書いている ブログの頻度が落ちているので、継続のための雑さな記事を醸し出す時期。 以前に es6-Kameita を紹介したときの繰り返しですが、Babel (旧名 6to5) の登場から個人プロジェクトは ECMAScript 6 で書くようにしています。仕事でも新しい開発がある予定なので、そこでもきっと ES6 を使うことでしょう。 ahomu/Talkie ahomu/Urler ahomu/Claylump ということで「もう ES6 でいいんじゃないか」という気持ちを書きます。 厳密には、ES6トランスパイラを使っていけばいいんじゃないか、という話 仕様周りは(きっと)安定してきている 世間的の大多数的には、ES6とES7の境界すらハッキリしていないであろう状況ではありますが、ES6自体は2015年中の勧告を目標に進んでいることから、それなりに安定し
I like to start off our blog posts with the latest big thing 6to5 has achieved. We haven’t reached it quite yet, but in a few days 6to5 and 6to5-core will have been downloaded half a million times, and in a month or so it will be over a million times. There has been a bit of confusion in the past as to 6to5’s role in the JavaScript community, which can largely be attributed to its name. 6to5 was n
This time I would like to share my experience of keeping a codestyle in one of my working projects. This is about a new tool called JSCS which we have recently chosen with the team and now are very pleased with the result. Once I joined SC5 Styleguide project, I discovered that it was not consistent enough from its codestyle perspective. It was not frightening by that time, but it was already clea
Preset Updates Preset: add "requireSpaceBetweenArguments" rule to all presets (Oleg Gaidarenko) Presets: Remove use of outdated validateJSDoc rule (Joel Kemp) Preset: Add "requireSpacesInsideParentheses" to jquery preset (Oleg Gaidarenko) Preset: switch multipleVarDecl rule in airbnb preset (Martin Bohal) Preset: change value of "requireDotNotation" rule for jquery preset (Oleg Gaidarenko) New Con
DigitalOnlineTechnology BrowserSync 2.0 Since BrowserSync’s inception, the code and action syncing features have improved the efficiency of multi-device/multi-browser workflows for developers across the globe. Having said that, we have listened to feedback from the community and thought about how we could go even further. Whilst having clicks, scroll position and form inputs mirrored across device
When writing JavaScript, I spend a lot of time fixing basic mistakes. I often rename a variable and test my app, and then find I didn’t rename the variable in one spot. I rename functions, same thing. I type things wrong, and again waste time clicking around in the browser. The feeling is always the same – Why did I make this mistake again? I’ve been programming for over 15 years, and I still keep
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く