並び順

ブックマーク数

期間指定

  • から
  • まで

361 - 400 件 / 794件

新着順 人気順

ESLintの検索結果361 - 400 件 / 794件

  • TSLintを使うTypeScriptプロジェクトにコードフォーマッタPrettierを導入する - Qiita

    TypeScriptのプロジェクトへのPrettierの導入紹介です。 (2019-02-11 ESLintのTypeScriptサポート強化が表明されていることをふまえて追記: この投稿はTSLintとPrettierを組み合わせる場合について記述しています。ESLint+Prettier for TypeScriptについてではないことにご注意ください。) Prettierとは Prettierはコードフォーマッタです。JavaScript(ES2017含む)、JSX、Vue、Flow、TypeScript、CSS(Less,SCSS)、JSON、GraphQL、Markdownとフロントエンド開発で使われる言語/仕様に多く対応しています。適用することでコードに一貫したスタイルをもたらします。 一貫したスタイルは読みやすさ、ひいては保守性につながる大正義です。 また、後述するように保存

      TSLintを使うTypeScriptプロジェクトにコードフォーマッタPrettierを導入する - Qiita
    • 2020-05-12のJS: ESLint v7.0.0、Next.js 9.4、npm 7の変更予定

      JSer.info #487 - ESLint 7.0.0がリリースされました。 ESLint v7.0.0 released - ESLint - Pluggable JavaScript linter ESLint v7.0.0 の変更点まとめ - Qiita メジャーアップデートであるため、ビルトインルールの変更が含まれています。 eslint:recommendedのルールを更新、いくつかのビルトインルールのデフォルトオプションの変更、Node.js関係のビルトインルールをeslint-plugin-nodeへ移行などが行われています。 また、.eslint.jsをデフォルトでignoreしないように変更、--configや--ignore-pathオプションでのパスの扱いの変更、プラグインの読み込み元ディレクトリが.eslintrc.*を基準とする変更なども含まれています。 その

        2020-05-12のJS: ESLint v7.0.0、Next.js 9.4、npm 7の変更予定
      • Welcoming JSCS To ESLint - ESLint - Pluggable JavaScript Linter

        ESLint and JSCS started out at roughly the same time, just three weeks apart in 2013. Both teams had a similar idea: leverage the ecosystem of ESTree-compatible tools such as Esprima to create the next generation of static analysis tools for JavaScript. While ESLint’s primary goal was to create a linter with pluggable rules, JSCS’s primary goal was to codify style guides for easy verification and

          Welcoming JSCS To ESLint - ESLint - Pluggable JavaScript Linter
        • TypeScriptのnamespaceは非推奨ではない - Qiita

          結論から 公式の TypeScript ドキュメントの何処にも namespace を非推奨と示唆する記載は無い。 尚且つ microsoft/TypeScript#30994(comment) で TypeScript チームのリード開発者である Ryan Cavanaugh 氏が述べているように将来的に廃止される事も無い。 TypeScript の namespace について調べると公式では無い記事や投稿で非推奨(deprecated)というワードが目立つ事、tslint や typescript-eslint を使用していると namespace の使用で注意されてしまう事などから非推奨と認識されてしまっていると推測する。 個人的に「非推奨」という強いワードは「使用するな」というメッセージ性を感じる。開発者同士の間で誤解を生みかねないため namespace は非推奨では無いと伝え

            TypeScriptのnamespaceは非推奨ではない - Qiita
          • Announcing typescript-eslint v7 | typescript-eslint

            typescript-eslint is the tooling that enables standard JavaScript tools such as ESLint and Prettier to support TypeScript code. We've been working on infrastructure improvements that will help ensuring long-term interoperability with other tools in the ecosystem. In particular this major release tightens our dependency requirements to help set us up for ESLint v9 and includes a new package typescr

              Announcing typescript-eslint v7 | typescript-eslint
            • GitHub - prettier/eslint-plugin-prettier: ESLint plugin for Prettier formatting

              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

                GitHub - prettier/eslint-plugin-prettier: ESLint plugin for Prettier formatting
              • Google App Scriptをモダンな開発っぽくする環境を作ってみた(ES6, browserify, eslint, mocha) - nagashigaki

                お前は今更何を言ってるんだ?というテーマですが整理するために。 Google App Script(以下GAS)とはjavascriptでGoogle App(今ではG suite?)の豊富な機能を堪能でき、ある程度の作業を自動化することができます。しかも無料で!指定時間に勝手にスクリプトを起動することもできちゃいます。 例えば、複数のcsvをDriveにアップしてボタンをポチっとするだけで目的のデータが揃い、そのデータをメールで飛ばしたりできるのは非常にありがたいです。 導入する環境 環境を整える npmとgitの初期化 babel gulpまわり browserify テストツール eslint ファイル構成 gulpfileの作成 お疲れさまでした 開発する 雑談 導入する環境 このGASの機能をもっと使いこなしたい。具体的には npmで管理 es6 gulp browserifyで

                  Google App Scriptをモダンな開発っぽくする環境を作ってみた(ES6, browserify, eslint, mocha) - nagashigaki
                • 2016年から始めるフロントサイド~環境構築編~ - Qiita

                  editor nodejs npm babel eslint webpack react,redux editor visual studio codeを使います。 keybindingsとsettingsを少し変更します。 sublime textの方がいいのでしょうか?良いのであれば購入を検討します! [ { "key": "shift+ctrl+k", "command": "workbench.action.editor.changeLanguageMode" }, { "key": "shift+ctrl+o", "command": "workbench.action.showCommands" }, { "key": "ctrl+j", "command": "deleteAllLeft"}, { "key": "ctrl+i", "command": "expandLine

                    2016年から始めるフロントサイド~環境構築編~ - Qiita
                  • 古いJavaScript(ES5)でもESLint・Prettierの恩恵を受けよう :: JavaScript | Refills

                    jQuery 時代までの古い JavaScript (ES5) を扱っており、これからも既存のアーキテクチャを 維持する必要があるけども、文法チェックや自動整形といったツールを導入したい場合に役に立ちます。 今やエディタ選択の有力候補となった Visual Studio Code (VSCode) をベースに、 インストールから実際の動作確認までを体験するところまでを案内しています。

                      古いJavaScript(ES5)でもESLint・Prettierの恩恵を受けよう :: JavaScript | Refills
                    • ESLint 0.17.0 released - ESLint - Pluggable JavaScript Linter

                      Highlights This is a summary of the major changes you need to know about for this version of ESLint. Changes to JSX/React handling In this release, we made the decision to stop supporting React semantics of JSX. We had previously been checking JSX for identifiers in our rules and realized we could only do that correctly by building-in knowledge of how React works. Such knowledge already hurt us wh

                        ESLint 0.17.0 released - ESLint - Pluggable JavaScript Linter
                      • https://github.com/jfmengels/eslint-plugin-fp/blob/master/docs/rules/no-class.md

                          https://github.com/jfmengels/eslint-plugin-fp/blob/master/docs/rules/no-class.md
                        • Configuring ESLint on a TypeScript project - Jack Franklin

                          January 28, 2019Configuring ESLint on a TypeScript projectWhenever I've used TypeScript in the past, I've set up TSLint as my linting tool of choice. However, I've always wished I could use ESLint instead, for a few reasons: I am more familiar with ESLint, and I know its rules better and have my preferred set of plugins.All the JS projects I work on use ESLint, so having all my projects use the sa

                            Configuring ESLint on a TypeScript project - Jack Franklin
                          • eslint-recommended.md

                            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-recommended.md
                            • 2015年が終わるのでフロントエンド開発に使ってるツールまわりをざっと書き出してみた - ミルク色の記録

                              題名の通り、ざっと書き出し。 このあたりのことを相談された時に、手元のリポジトリを漁って「こんな感じでやってます」とやってたけど、 とりあえずこのURL渡して参考にしてもらうみたいなことができれば... ご注意 Xubuntu 14.04でやってるのでWindowsやOSXは未確認。 こじんまりした規模の開発で使っている構成なので、規模によっては向いていないかも。 サーバとはJSONとかのAPIでお話するだけの、SPAなフロントエンド用(ルーティングはハッシュチェンジ系向け)。 おしながき 共通用 nodeの管理 JavaScriptのLint プロジェクト用 プロジェクトディレクトリの下準備 タスクランナー HTMLと開発用Webサーバ CSSや画像ファイルなどのスタイルまわり JavaScriptまわり(モジュールバンドラ) プロダクション用のビルド テスト環境 APIサーバとつなぎな

                                2015年が終わるのでフロントエンド開発に使ってるツールまわりをざっと書き出してみた - ミルク色の記録
                              • サーバーサイドプログラマーのためのReact.js 入門 2. 開発環境の構築の続き - yuumi3のお仕事日記

                                これから作るアプリ 今回と次回で作るアプリですが Ruby on Railsのscaffoldジェネレータが生成する古き良き時代の単純なWebアプリケーションと同じ動きをする、React.js を使った Single page application (SPA)のフロントエンドを作っていきます。 バックエアンド(APIサーバー)は Ruby on Rails を使うことにします。 バックエンドの構築 Ruby on Railsのインストール等はネット上の情報を参考にしてください。 私の会社 EY-OfficeのWikiにもインストール方法を書いています (少し古いのでバージョンは最新のものを入れて下さい) Railsがインストールできたら、以下のようにプロジェクトを作り scaffold ジェネレータを使い、Railsアプリを作ります。 $ rails new todo_app $ cd

                                  サーバーサイドプログラマーのためのReact.js 入門 2. 開発環境の構築の続き - yuumi3のお仕事日記
                                • VS Code で ESLint × Prettier のベストかも知れないプラクティス - Qiita

                                  2020/06/20 修正 前提 の部分について、VS Code のバージョンアップに伴い当てはまらない記述が出て来ましたので、一部内容を修正しました。 前書き 餅は餅屋と言う事で、コードフォーマットは Prettier に任せ、ESLint には静的解析だけを担当させると言う棲み分けが昨今の風潮ではないかと思います。 しかし VS Code には拡張機能でも ESLint や Prettier が用意されており、npm 等でインストールされるそれらとの関連がややこしい。 と言うわけで、 「いろいろ突き詰めればいろいろあるけどとりあえずこれで良くね?」 と言うやり方をご紹介します。 チーム・組織や案件によってニーズやルールは異なるのは当然ですが、ごくごくシンプルに決まったルールでフォーマットと lint をやってくれればそれでいいんだ。と言う人向けです。 前提 前提として、VS Code

                                    VS Code で ESLint × Prettier のベストかも知れないプラクティス - Qiita
                                  • Announcing ES6 and JSX Support - ESLint - Pluggable JavaScript Linter

                                    We’ve been working on #1291 for a while to see how we could add support for ECMAScript 6 and JSX into ESLint. While we were investigating adding ES6 support, we were also getting a fair amount of requests to add JSX support. We soon realized that Facebook’s Esprima fork that supports both ES6 and JSX would be the easiest way to move forward. This left us with some questions about how to support ES

                                      Announcing ES6 and JSX Support - ESLint - Pluggable JavaScript Linter
                                    • EmacsのESLint環境をセットアップした - Umi Uyuraのブログ

                                      以前、EmacsでReact(JSX)コーディングする環境について調べた際に、JSXの構文チェックとして JSXHint を使うようにしました。 umi-uyura.hatenablog.com ところが、こちらの記事によると、どうやらすでにJSXHintはDeprecatedになっていて、ESLintへの移行を促しているとのこと。 vim + syntastic + jshint だと JSX がエラーになる問題 | はなたんのブログ ESLintがJSXにも対応していることは前回把握していたものの、一通り設定をするのが面倒だったので採用していませんでしたが、そろそろES6も触ってみたいこともあり、このタイミングでESLintの環境を用意しておくことにしました。 ESLintの導入 npmからESLintをインストールしておきます。 $ npm install -g eslint Fly

                                        EmacsのESLint環境をセットアップした - Umi Uyuraのブログ
                                      • ESLintの設定継承システム

                                        ESLintのv0.20.0からプロジェクト・ローカルに.eslintrcがある場合は~/.eslintrcから設定を読まなくなった。つまりESLintのデフォルトの設定をユーザー・レベルで調節する術がほぼなくなったと言って良い。そうなった理由はわからないこともないのだけど、改悪な気がしてならない。 確かにプロジェクト・ローカルの.eslintrcだけしか見ないようにすると、プロジェクト・メンバー間でのコーディング・スタイルが統一しやすくなる。しかしそれはいわゆるフォーマッターの役目で、リンターの役目ではないように思う。リンターの段階でコーディング・スタイルへの準拠を強いられると、普段それと違う書き方をしている人達にものすごいフラストレーションを与えることだろう。 強いられたスタイルのうちいくつかはEditorConfigなどの併用により自動的に対応することはできる。その状態で書かれたコー

                                          ESLintの設定継承システム
                                        • eslint-flat-config

                                          ESLint Flat Configで誰もが簡単に Lintを設定できる時代へ。 新しいESLintの設定方法、ESLint Flat Configを紹介します。

                                            eslint-flat-config
                                          • JavaScript Programming with Visual Studio Code

                                            Version 1.85 is now available! Read about the new features and fixes from November. JavaScript in Visual Studio Code Visual Studio Code includes built-in JavaScript IntelliSense, debugging, formatting, code navigation, refactorings, and many other advanced language features. Most of these features just work out of the box, while some may require basic configuration to get the best experience. This

                                              JavaScript Programming with Visual Studio Code
                                            • JS Standard Style - Qiita

                                              自己紹介 日野澤歓也 (ひのさわよしや) github / qiita は @kt3k 今日はリントの話です JavaScript のリントツールと言えば JSLint / JSHint / ESLint などがありますが 今日紹介するツール Standard という名前のリントツール コマンド名が standard 内部的には ESLint を使っている ESLint おすすめルール集的なものとも言える 特徴1 (リントルール) セミコロンなし 2スペースインデント リントルールは基本的にコンフィグ不可能❗️ プラグイン単位での追加は OK e.g. eslint-plugin-flow eslint-plugin-vue など 特徴2 (コマンド) ファイルの自動検出 standard コマンドを打つとリントすべきファイルをほぼ勝手に探してくれる (↑ 具体的にはこの辺を ignore

                                                JS Standard Style - Qiita
                                              • 大規模プロジェクトの静的検証ツール(ESLint)を見直して整備した話 - Link and Motivation Developers' Blog

                                                はじめまして、新卒でリンクアンドモチベーションに入社し、未経験からエンジニアをして4年目になります小宮です。入社して以来、一貫してモチベーションクラウドの開発業務に従事しております。 今回、そんな僕が3ヶ月ほどソロプロジェクトとして取り組んでいたESLintの整備PJTについて、まとめていきたいと思います。 整備前の状態 Phase1 - 既存ルールを適用 Phase2 - パッケージ群のアップデート Phase3 - huskyとlint-stagedの導入 最後に 整備前の状態 元々試験運用的に一度導入したことがあったのか、エラー解消に至っていない、対応が必要なルールを暫定的にOFFにするというコメントが設定ファイルに記載されており、ほぼESLintがワークしていませんでした。そのため、人によってコーディングの差異が発生しており、 フロント横断組織*1に所属しているメンバーが各々のチー

                                                  大規模プロジェクトの静的検証ツール(ESLint)を見直して整備した話 - Link and Motivation Developers' Blog
                                                • GitHub - yarax/eslint-plugin-typelint: TypeLint is an ESlint plugin for optional static typing in JavaScript, based on JSDoc.

                                                  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

                                                    GitHub - yarax/eslint-plugin-typelint: TypeLint is an ESlint plugin for optional static typing in JavaScript, based on JSDoc.
                                                  • TypeScript / JavaScript の import を自動でソートする - Sansan Tech Blog

                                                    こんにちは。Eight でエンジニアをしている鳥山(@pvcresin)です。 マイブームはコンビニで買える GODIVA のベルギーダークチョコレート(アイス)を食べることです。 濃厚で甘すぎず、量も多すぎないところが気に入っています。 今回は TypeScript や JavaScript の import を自動でソートする話をしたいと思います。 といっても、TypeScript でソートがうまく行けば JavaScript でも大抵うまくいくので、主に TypeScript にフォーカスした話になるかと思います。 背景 import をソートしようと思ったきっかけは、チームのメンバーが出した 1 つの PR(プルリクエスト)でした。 新規作成したファイルの import が、ライブラリからの import とその他のファイルからの import でそれぞれまとめられており、見やすい

                                                      TypeScript / JavaScript の import を自動でソートする - Sansan Tech Blog
                                                    • ESLint v1.6.0 released - ESLint - Pluggable JavaScript Linter

                                                      Highlights Here are some highlights of changes in this release. Autofixing of more rules ESLint v1.6.0 introduces several more autofixing rules to use with the --fix command line argument. In this release, we have implemented autofixing in these rules: space-unary-ops computed-property-spacing no-multi-spaces object-curly-spacing array-bracket-spacing generator-star-spacing arrow-spacing block-spa

                                                        ESLint v1.6.0 released - ESLint - Pluggable JavaScript Linter
                                                      • ESLint 0.11.0 released - ESLint - Pluggable JavaScript Linter

                                                        Highlights This is a summary of the major changes you need to know about for this version of ESLint. New parser 0.11.0 is the first version of ESLint to run on our own parser, Espree. Espree is currently configured to behave like Esprima 1.2.2, which was the parser that 0.10.0 was using, so you should see no differences in the behavior of ESLint related to the parser change. Making this change all

                                                          ESLint 0.11.0 released - ESLint - Pluggable JavaScript Linter
                                                        • GitHub - makotot/eslint-rules-example: eslint rules example

                                                          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

                                                            GitHub - makotot/eslint-rules-example: eslint rules example
                                                          • ESLint対応物語 ~no-restricted-syntax~ - Qiita

                                                            むちゃくちゃ間が空いちゃいましたが、明日会社でLTやるので書きますw 今回は「no-restricted-syntax」=「制限構文を使っちゃだめ」 というルールの紹介と対応方法をまとめたいと思います。 具体的にはどんなもの? no-restricted-syntax このルール自体に制約はなく、オプションで指定した構文を禁止する、といったもののようです。 ちなみに eslint-config-airbnb v14.1.0ではこんな感じで設定されています。 // disallow certain syntax forms // http://eslint.org/docs/rules/no-restricted-syntax 'no-restricted-syntax': [ 'error', { selector: 'ForInStatement', message: 'for..in

                                                              ESLint対応物語 ~no-restricted-syntax~ - Qiita
                                                            • ESLint - Visual Studio Marketplace

                                                              Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter. VS Code ESLint extension Integrates ESLint into VS Code. If you are new to ESLint check the documentation. The extension uses the ESLint library installed in the opened workspace folder. If the folder doesn't provide one the extension looks for a global install version. If you haven't installed ESLint either locally

                                                                ESLint - Visual Studio Marketplace
                                                              • ESLint 1.0.0 released - ESLint - Pluggable JavaScript Linter

                                                                In this announcement, we are including all changes from each of the release candidates to make it easier to see what changed from the release candidates to now. As there are a lot of changes, we’ve created a migration guide describing the changes in great detail along with the steps you should take to address them. Not all ESLint users will be affected by the changes, however, the changes are big

                                                                  ESLint 1.0.0 released - ESLint - Pluggable JavaScript Linter
                                                                • eslint-config-airbnb

                                                                  This package provides Airbnb's .eslintrc as an extensible shared config. Usage We export three ESLint configurations for your usage. Our default export contains most of our ESLint rules, including ECMAScript 6+ and React. It requires eslint, eslint-plugin-import, eslint-plugin-react, eslint-plugin-react-hooks, and eslint-plugin-jsx-a11y. Note that it does not enable our React Hooks rules. To enabl

                                                                    eslint-config-airbnb
                                                                  • ESLintのコメントでのルール制御 - Qiita

                                                                    大まかには.eslintrcに書いとけばいいが、ファイルや特定の場合によって個別にルールを無効にしたい時がちょこちょこある。その辺をコメントで解決できる方法がいくつかあるのでまとめ。 ファイル全体 例えばこのコードはno-unused-varsというルールの警告を受けるが、

                                                                      ESLintのコメントでのルール制御 - Qiita
                                                                    • GitHub - pinterest/esprint: Fast eslint runner

                                                                      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

                                                                        GitHub - pinterest/esprint: Fast eslint runner
                                                                      • Rules of Hooks – React

                                                                        Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class. Hooks are JavaScript functions, but you need to follow two rules when using them. We provide a linter plugin to enforce these rules automatically: Only Call Hooks at the Top Level Don’t call Hooks inside loops, conditions, or nested functions. Instead, always use Hooks at the top level

                                                                          Rules of Hooks – React
                                                                        • GitHub - mantoni/eslint_d.js: Makes eslint the fastest linter on the planet

                                                                          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

                                                                            GitHub - mantoni/eslint_d.js: Makes eslint the fastest linter on the planet
                                                                          • textlintから学んだこと

                                                                            textlintから学んだこと 自己紹介 azu @azu_re Web scratch, JSer.info アジェンダ What is textlint? CLIツールの設計思想 ASTのLintの仕組み モジュールに分けるべし インターフェースとしての問題 ドキュメントとしての問題 ドキュメント JSDocとd.ts textlint とは何か MarkdownやテキストをLintするツール ESLintのテキスト版! MarkdownやテキストをASTにしてチェックする チェックルールをJavaScriptで書いて簡単に追加出来る Lintの仕組み Markdown or TextをASTに変換 ASTはTxtNodeというインターフェースを持つ 例えば、node.typeが"Header"という種類 node.rawにテキストの中身、node.locに行番号等の位置 txtnod

                                                                            • GitHub - import-js/eslint-plugin-import: ESLint plugin with rules that help validate proper imports.

                                                                              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

                                                                                GitHub - import-js/eslint-plugin-import: ESLint plugin with rules that help validate proper imports.
                                                                              • https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/ROADMAP.md

                                                                                  https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/ROADMAP.md
                                                                                • GitHub - amilajack/eslint-plugin-flowtype-errors: Run Flow as an ESLint plugin

                                                                                  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

                                                                                    GitHub - amilajack/eslint-plugin-flowtype-errors: Run Flow as an ESLint plugin