並び順

ブックマーク数

期間指定

  • から
  • まで

241 - 280 件 / 456件

新着順 人気順

eslintの検索結果241 - 280 件 / 456件

  • ESLint プラグインのテンプレートを作った - Qiita

    Why reinvent the wheel? With GitHub repository templates you can easily reuse code across all your projects.https://t.co/4aDIcTkaJl pic.twitter.com/yjKN9sprTT — GitHub (@github) June 6, 2019 GitHub がリポジトリ テンプレートの機能をリリースしたそうなので、ESLint プラグインのテンプレートを作ってみました。 https://github.com/mysticatea/template-eslint-plugin Use this template ボタンを押下すると新しいリポジトリを作る画面になるので、いつも通りにリポジトリを作るとテンプレートのファイル群がコミットされたリポジトリが作成され

      ESLint プラグインのテンプレートを作った - Qiita
    • 📈 Tracking: Flat Config rollout · Issue #18093 · eslint/eslint

      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

        📈 Tracking: Flat Config rollout · Issue #18093 · eslint/eslint
      • GitHub - ts-safeql/safeql: Validate and auto-generate TypeScript types from raw SQL queries in PostgreSQL.

        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 - ts-safeql/safeql: Validate and auto-generate TypeScript types from raw SQL queries in PostgreSQL.
        • PrettierとESLintをVSCodeで使う(Vue) - Qiita

          はじめに PrettierとESLintをVSCodeで使う方法だが、色々と情報が交錯しすぎなようで、結構調べるのに時間がかかったよ。。。。 というわけで、とりあえず「自分はこの方法で多分できたぜ!」という記録を残す。 環境と前提 ・Vue CLIで作成したプロジェクト ・VSCodeにPrettierとESLintのVSCodeプラグインがインストール済み プラグインのインストールには、下記のようにExtensionsを開いて、該当のプラグインを検索してinstall そもそもの疑問 VSCodeにプラグイン入れるだけで終わりじゃないの?? →終わりじゃない! こいつらをインストールして終わりかと思いきや、そうじゃない。。。 .eslintrcファイルは作る必要あるの? 調べていると毎回登場する「eslintrcファイル」というやつ。。 Vue CLIで作ったプロジェクトなら、最初から.

            PrettierとESLintをVSCodeで使う(Vue) - Qiita
          • ESLint v6.8.0 - Qiita

            前 v6.7.0 | 次 v7.0.0 ESLint v6.8.0 has been released:https://t.co/JXqs24flN0 — ESLint (@geteslint) December 20, 2019 ESLint 6.8.0 がリリースされました。 小さな機能追加とバグ修正が行われています。 このリリースは ESLint 6.x 系 最後のリリースになります。 来月からしばらくの間 7.0.0 のアルファ版・ベータ版がリリースされます。この日本語版リリースノートは 7.0.0 正式リリース (日付未定。3月くらい?) までの間はお休みする予定ですのでご了承ください。 質問やバグ報告等ありましたら、お気軽にこちらまでお寄せください。 🏢 日本語 Issue 管理リポジトリ 👫 日本語サポート チャット 🏢 本家リポジトリ 👫 本家サポート チャット

              ESLint v6.8.0 - Qiita
            • Change Request: Deprecate formatting rules and recommend using a source code formatter · Issue #17522 · eslint/eslint

              ESLint version HEAD What problem do you want to solve? ESLint has a lot of core rules that simply move whitespace around. After years of maintaining these rules, I personally believe two things: ESLint is not the right tool for source code formatting. Having each augmentation of whitespace as a separate rule just doesn't scale and forces us to continue to add exceptions and new rules whenever new

                Change Request: Deprecate formatting rules and recommend using a source code formatter · Issue #17522 · eslint/eslint
              • GitHub - Quramy/typescript-eslint-language-service: TypeScript language service plugin for ESLint

                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.

                  GitHub - Quramy/typescript-eslint-language-service: TypeScript language service plugin for ESLint
                • ESLint v7.5.0 released - ESLint - Pluggable JavaScript Linter

                  Published 18 Jul, 2020 under Release Notes ESLint v7.5.0 released We just pushed ESLint v7.5.0, which is a minor release upgrade of ESLint. This release adds some new features and fixes several bugs found in the previous release. Highlights Optional Chaining Support Support for optional chaining has landed in ESLint! const maybeProp = obj.first?.second; The default parser and built-in rules will s

                    ESLint v7.5.0 released - ESLint - Pluggable JavaScript Linter
                  • Biome v1.7

                    Today we’re excited to announce the release of Biome v1.7! This new version provides an easy path to migrate from ESLint and Prettier. It also introduces experimental machine-readable reports for the formatter and the linter, new linter rules, and many fixes. Update Biome using the following commands:

                      Biome v1.7
                    • Akitainu: unified linting toolkit for node.js projects

                      Akitainu is a tool for unifying linting workflows of node.js projects. Based on .akitainurc.js, Akitainu can invoke multiple linters and provide results in a unified format. It also supports posting list results as a pull request review comment on GitHub. Akitainu is also suitable in the case where you want to tighten linter settings but cannot afford to fix all existing code for the new settings.

                        Akitainu: unified linting toolkit for node.js projects
                      • eslint-plugin-var-lengthで変数名の長さにメリハリをつけよう!

                        こんにちは。この記事は筆者が開発したESLintプラグイン「eslint-plugin-var-length」を宣伝する記事です。このプラグインを使うことで、変数の生存範囲の広さに応じて変数の最低文字数制限を変えることができます。 変数名の長さについて 変数名というのは、プログラミングにおいて非常に重要な要素です。どんな変数名でもプログラムは動きますが、変数名はプログラムの読みやすさに大きな影響を与えます。極端な例では、変数名が順番にa, b, c, ……だとしたらそのプログラムはとても読めたものではないでしょう。 変数名は何が入っているのかが分かりやすい命名が理想的ですが、変数の名前の良し悪しのチェックというのは困難なタスクです。変数名がチェックされる主な機会はコードレビューであり、変数名の良し悪しを人間がチェックしなければいけません。プログラミング、特にコードのチェックにおいては機械的

                          eslint-plugin-var-lengthで変数名の長さにメリハリをつけよう!
                        • TypeScriptプロジェクトに3分でESLint/Prettierを入れる(2022年)

                          注1. ソースはsrc配下にある前提になっていますので、適宜変えてください。 注2. 導入後、設定の微調整は適宜行ってください。 結論 1. パッケージインストール 5つインストールする。 パッケージマネージャに応じてコマンドは変えること。 npm install --save-dev eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-config-prettier prettier { "env": { "es2021": true // 環境に応じてenvは変えてください // "node": true, // "browser": true }, "extends": [ "eslint:recommended", "plugin:@typescript-eslint/recommende

                            TypeScriptプロジェクトに3分でESLint/Prettierを入れる(2022年)
                          • no-unsafe-finally - ESLint - Pluggable JavaScript Linter

                            JavaScript suspends the control flow statements of try and catch blocks until the execution of finally block finishes. So, when return, throw, break, or continue is used in finally, control flow statements inside try and catch are overwritten, which is considered as unexpected behavior. Such as: // We expect this function to return 1; (() => { try { return 1; // 1 is returned but suspended until f

                              no-unsafe-finally - ESLint - Pluggable JavaScript Linter
                            • ESLint's 2022 year in review - ESLint - Pluggable JavaScript Linter

                              In February 2022, we shared our plan for 2022, including how the ESLint project as a whole would be spending its sponsorship money for the betterment of the project. In this post, I’ll share what we achieved during the year. Website redesign The most recognizable change to the project was undoubtedly the website redesign. The new website was officially launched on June 23 and was immediately met w

                                ESLint's 2022 year in review - ESLint - Pluggable JavaScript Linter
                              • Migrate to v9.x - ESLint - Pluggable JavaScript Linter

                                To address: If you are using any of these formatters via the -f command line flag, you’ll need to install the respective package for the formatter. Related issue(s): #17524 Removed require-jsdoc and valid-jsdoc rules The require-jsdoc and valid-jsdoc rules have been removed in ESLint v9.0.0. These rules were initially deprecated in 2018. To address: Use the replacement rules in eslint-plugin-jsdoc

                                  Migrate to v9.x - ESLint - Pluggable JavaScript Linter
                                • ESLintでimportの整列・追加・削除を自動化する - Qiita

                                  概要 ESLintのプラグインとVS Codeの設定でimportの追加・削除・整列を自動化して幸せになれる記事です。 こんな人におすすめ チーム間でimportの順番などのルールが決まっておらず。人によってフォーマットがバラバラなのが実は気になっている。 未使用のimportを消すのを忘れがち。 コンポーネントやライブラリの関数を書いたら勝手にimportしてくれたら嬉しい。 import周りを触るのがシンプルにめんどい。 使用するプラグインと設定 VS Codeの設定 source.addMissingImports importの自動追加に使用する VS Codeで設定する ESLintのプラグイン eslint-plugin-import importの整列に使用するプラグイン eslint-plugin-unused-imports 未使用のimportを削除に使用するプラグイン

                                    ESLintでimportの整列・追加・削除を自動化する - Qiita
                                  • Next.js +TypeScriptで環境構築!ESLint + Prettierの導入から解析自動化までやってみた

                                    はじめに こんばんは、バックエンドエンジニア見習い1年目のkuraoです! 「Next.js+TypeScript」でアプリケーション環境を構築する機会があり、その際リンターツール導入の手順などと併せてドキュメントとしてまとめていたので、アウトプットを兼ねてこの場に書き連ねて行こうと思います! 実現したい事 今回のアプリケーション環境構築で目指す所としては以下です。 Next.js環境のアプリを構築 Next.js環境のアプリにTypeScriptを導入 ESLint + Prettier を導入して、コードの一貫性を高め、かつバグ回避を行う husky + lint-staged を導入して、ESlintとPrettierによるコード解析を自動化する 前提 nodeがインストールしてある事(ver. 14.15.4) yarnパッケージがインストールしてある事(ver. 1.22.4)

                                      Next.js +TypeScriptで環境構築!ESLint + Prettierの導入から解析自動化までやってみた
                                    • typescript-eslint/packages/eslint-plugin/docs/rules at main · typescript-eslint/typescript-eslint

                                      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

                                        typescript-eslint/packages/eslint-plugin/docs/rules at main · typescript-eslint/typescript-eslint
                                      • 【VSCode】ReactとTypeScript、ESLint、Prettier、Airbnbで環境構築する手順

                                        【VSCode】ReactとTypeScript、ESLint、Prettier、Airbnbで環境構築する手順 今回はVSCodeでReactとTypeScript、ESLint、Prettier、Airbnbの環境構築について説明します。 前提条件は以下 creat-react-appを使ってReact、TypeScriptの環境を作るESLintとPrettierを追加して、VSCode上の拡張機能と連動させるAirbnbでESLintのルールを拡張して、チェック機能を強化 環境は以下です。 macOS Catalina v10.15.5Visual Studio Code v1.57.0React v17.0.2TypeScript v4.5.5node.js v16.13.1 ReactとTypeScriptの環境構築する流れ Reactの環境構築には公式でも紹介されているcre

                                          【VSCode】ReactとTypeScript、ESLint、Prettier、Airbnbで環境構築する手順
                                        • GitHub - antfu/eslint-flat-config-viewer: A visual tool to help you view and understand your ESLint Flat config.

                                          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 - antfu/eslint-flat-config-viewer: A visual tool to help you view and understand your ESLint Flat config.
                                          • Vue CLIのデフォルト設定からESLintのベストプラクティスを検討する | フューチャー技術ブログ

                                            TIGの伊藤真彦です。 この記事はフロントエンド連載の3記事目です。 今回は愛用しているVue CLIを利用して、フロントエンドアプリケーションの詳細な設定について調査してみました。 はじめにプログラムを実装する上で、コードの書き方は絶対的な正解のないトピックとして存在します。 例えば、コードのインデントはタブなのか、半角スペースなのか、文字列リテラルを囲う記号は””なのか’’なのか、といった細かいルールです。これらのルールは、究極的には好みの問題で、正解のあるものではありません。 正解がない以上、コードを実装する際にどのようなフォーマットが正しいかを判断することは難しいです。言語によってはコード規約をプロジェクト、チーム、または会社単位で明記、時には社外に公開する事でこれらルールの混乱を防ぐ試みも存在します。 ちなみにフューチャーではJavaとSQLのコード規約を公開しています。 しかし

                                              Vue CLIのデフォルト設定からESLintのベストプラクティスを検討する | フューチャー技術ブログ
                                            • GitHub - webpack-contrib/eslint-webpack-plugin: A ESLint plugin for webpack

                                              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 - webpack-contrib/eslint-webpack-plugin: A ESLint plugin for webpack
                                              • ESLint v8.56.0 の `reportUnusedDisableDirectives` とは何か?

                                                この記事は Cybozu Frontend Advent Calendar 2023 の 24 日目の記事です。 先日リリースされた ESLint v8.56.0 でオプション reportUnusedDisableDirectives が改善された話です。 元々どういうオプションだった? // eslint-disable-line みたいなルール無効化ディレクティブを書いたけど、しばらくして何かしらのコード修正の影響でもうそのルール違反は発生しなくなって、でも無効化ディレクティブは消し忘れて無駄に残っている、みたいな状態は起こりがちです。 例えば以下のように non null assertion (!) が一時的に必要になって disable したけど、

                                                  ESLint v8.56.0 の `reportUnusedDisableDirectives` とは何か?
                                                • Configuration Files (New) - ESLint - Pluggable JavaScript Linter

                                                  This config system is feature complete but not enabled by default. To opt-in, place an eslint.config.js file in the root of your project or set the ESLINT_USE_FLAT_CONFIG environment variable to true. To opt-out, even in the presence of an eslint.config.js file, set the environment variable to false. If you are using the API, you can use the configuration system described on this page by using the

                                                    Configuration Files (New) - ESLint - Pluggable JavaScript Linter
                                                  • ESLint v7.1.0 - Qiita

                                                    前 v7.0.0 | 次 v7.2.0 ESLint v7.1.0 has been released! 🎉https://t.co/r2Dk1UBQoy — ESLint (@geteslint) May 23, 2020 ESLint 7.1.0 がリリースされました。小さな機能追加とバグ修正が含まれています。 また、公式のサポートチャット (英語) が Gitter から Discord に移動しました。日本語の方も移動予定です。 質問やバグ報告等ありましたら、お気軽にこちらまでお寄せください。 🏢 日本語 Issue 管理リポジトリ 👫 日本語サポート チャット (招待リンク) 🏢 本家リポジトリ 👫 本家サポート チャット (招待リンク) [PR] ESLint は開発リソースを確保するための寄付を募っています。 応援してくださると嬉しいです。 ESLint の Git

                                                      ESLint v7.1.0 - Qiita
                                                    • Home (Envelop)

                                                      Envelop: The Missing GraphQL Plugin SystemDevelop and share plugins that are usable with any GraphQL server framework or schema.

                                                        Home (Envelop)
                                                      • GitHub - angular-eslint/angular-eslint: :sparkles: Monorepo for all the tooling related to using ESLint with Angular

                                                        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 - angular-eslint/angular-eslint: :sparkles: Monorepo for all the tooling related to using ESLint with Angular
                                                        • Find and fix problems in your JavaScript code - ESLint - Pluggable JavaScript Linter

                                                          ESLint Versions Latest Version v8.16.0 on 20 May Upcoming Version v8.17.0 on 3 Jun Development HEAD on 25 May Find issues ESLint statically analyzes your code to quickly find problems. ESLint is built into most text editors and you can run ESLint as part of your continuous integration pipeline. Learn more about finding issues with ESLint Fix problems automatically Many problems ESLint finds can be

                                                            Find and fix problems in your JavaScript code - ESLint - Pluggable JavaScript Linter
                                                          • Release eslint-config-airbnb-v19.0.0 · airbnb/javascript

                                                            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.

                                                              Release eslint-config-airbnb-v19.0.0 · airbnb/javascript
                                                            • ESLint - Error: Must use import to load ES Module

                                                              I am currently setting up a boilerplate with React, TypeScript, styled components, Webpack, etc., and I am getting an error when trying to run ESLint: Error: Must use import to load ES Module Here is a more verbose version of the error: /Users/ben/Desktop/development projects/react-boilerplate-styled-context/src/api/api.ts 0:0 error Parsing error: Must use import to load ES Module: /Users/ben/Desk

                                                                ESLint - Error: Must use import to load ES Module
                                                              • TypeError: this.cliEngine is not a constructor – IDEs Support (IntelliJ Platform) | JetBrains

                                                                Hi! When I try to set up eslint in webstorm using this guide https://www.jetbrains.com/help/webstorm/eslint.html i get an error message on each js file saying ESLint: TypeError: this.cliEngine is not a constructor . I have search the web and cannot find any way to fix this issue, does anyone know how to solve this problem? Thanks, Magnus

                                                                  TypeError: this.cliEngine is not a constructor – IDEs Support (IntelliJ Platform) | JetBrains
                                                                • ESLint v8.0.0-rc.0 released - ESLint - Pluggable JavaScript Linter

                                                                  Published 24 Sep, 2021 under Release Notes ESLint v8.0.0-rc.0 released We just pushed ESLint v8.0.0-rc.0, which is a new prerelease version for ESLint v8. This release adds some new features and fixes several bugs found in the previous release. Highlights This is a summary of the major changes you need to know about for this version of ESLint. This version of ESLint is provided to gather feedback

                                                                    ESLint v8.0.0-rc.0 released - ESLint - Pluggable JavaScript Linter
                                                                  • npmで管理しているライブラリのバージョンアップ手順まとめ

                                                                    概要 npmで管理しているライブラリのバージョンアップ方法をまとめていきます。 また、今回は何かサンプルのプロジェクトを利用し、結果を見ていくとわかりやすいと思うので、https://github.com/creativetimofficial/vue-notus こちらを利用し下記の手順を試しながら結果を記載していきます。 ローカル環境のnpmバージョンを確認 最新のversionになっていることを確認します。 最新になっていなければversionをlatestまで上げてからバージョンアップを行うのが良いです。 現在のライブラリのversionを確認 npm outdatedコマンドで現在のライブラリのバージョン、マイナーバージョンがどのくらい上がるのかを確認します。 npm outdated説明 Current:現在インストールされているバージョン Wanted:存在するバージョンのう

                                                                      npmで管理しているライブラリのバージョンアップ手順まとめ
                                                                    • GitHub - eslint-types/eslint-define-config: Provide a defineConfig function for .eslintrc.js files

                                                                      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.

                                                                        GitHub - eslint-types/eslint-define-config: Provide a defineConfig function for .eslintrc.js files
                                                                      • StyleGuide | TypeScript Deep Dive

                                                                        An unofficial TypeScript Style Guide People have asked me for my opinions on this. Personally I don't enforce these a lot on my teams and projects but it does help to have these mentioned as a tiebreaker when someone feels the need to have such strong consistency. There are other things that I feel much more strongly about and those are covered in the tips chapter (e.g. type assertion is bad, prop

                                                                          StyleGuide | TypeScript Deep Dive
                                                                        • GitHub - mysticatea/template-eslint-plugin: A repository template for ESLint plugins.

                                                                          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.

                                                                            GitHub - mysticatea/template-eslint-plugin: A repository template for ESLint plugins.
                                                                          • ESLint Flat Config を ESM (.mjs) で書く

                                                                            ESLintの新しいFlat Configは、デフォルトではファイル名と拡張子が固定でeslint.config.jsしか使えない。eslint.config.mjsが使えない。 つまり、プロジェクトのpackage.jsonのtypeに依存して、中身がCommonJSかESMなのかが変わってしまう。 これは実際けっこう面倒になりそうで、自分で使う設定ファイルは共通で使い回すことになると思うけど、プロジェクトによってrequire()を使うCJS用とimportを使うESM用で書き分けないといけなくなる。 一応コマンドライン引数を使えば任意のファイル名を設定ファイルとして渡すことはできるけど、その場合は環境変数でFlat Configを有効化する必要もあるので、都度手で打つのは厳しい長々としたコマンドになってしまう。 ESLintチームは、これに関してかなり固い決意を持っているようなので覆

                                                                              ESLint Flat Config を ESM (.mjs) で書く
                                                                            • GitHub - storybookjs/eslint-plugin-storybook: 🎗Official ESLint plugin for Storybook

                                                                              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 - storybookjs/eslint-plugin-storybook: 🎗Official ESLint plugin for Storybook
                                                                              • ESLint v7.10.0 released - ESLint - Pluggable JavaScript Linter

                                                                                Published 26 Sep, 2020 under Release Notes ESLint v7.10.0 released We just pushed ESLint v7.10.0, which is a minor release upgrade of ESLint. This release adds some new features and fixes several bugs found in the previous release. Highlights New option ignorePattern in the no-inline-comments rule. Enhancements 07d9bea Update: Add ignorePattern to no-inline-comments (#13029) (Edie Lemoine) Bug Fix

                                                                                  ESLint v7.10.0 released - ESLint - Pluggable JavaScript Linter
                                                                                • Angular 11のプロジェクトをCodelyzerとTSLintからESLintへマイグレーションしてみた | DevelopersIO

                                                                                  こんにちは!DA(データアナリティクス)事業本部 インテグレーション部の大高です。 先日、Angular 11がリリースされました。以前からロードマップに上がっていましたが、Angularブログのリリース紹介記事でもLintingについて記載されています。 In previous versions of Angular, we’ve shipped a default implementation for linting (TSLint). Now, TSLint is deprecated by the project creators who recommend migration to ESLint. (中略) We’re deprecating the use of TSLint and Codelyzer in version 11. This means that in fut

                                                                                    Angular 11のプロジェクトをCodelyzerとTSLintからESLintへマイグレーションしてみた | DevelopersIO