並び順

ブックマーク数

期間指定

  • から
  • まで

241 - 280 件 / 326件

新着順 人気順

ESLintの検索結果241 - 280 件 / 326件

  • 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
    • Announcing typescript-eslint v8 | 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 a set of breaking changes and general features that we're excited to get in front of users. And now, we're excited to say that typescript-eslint v8 is released as stable! 🎉 We'd previously blogged about v8 in Announcing typescript-eslint v8 Beta. Th

        Announcing typescript-eslint v8 | typescript-eslint
      • 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'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
          • TypeScript の開発環境を作る。VSCode を基本に ESLint と Prettier も添えて。 - Multi Vitamin & Mineral

            はじめに VSCode と Node.js の用意 TypeScript のインストール TypeScript のコンパイル eslint の導入 蛇足 Prettier の導入 VSCode のプラグイン はじめに TypeScript の開発環境の作り方です。 「TypeScript をサクッと一通り知る」のサブコンテンツとなっています。 multimineral-tech.com ここでは、特定のディレクトリ(以降、プロジェクトと呼ぶ)内でのみで TypeScript が有効になる環境の構築を目指すものです。(PC全体にはインストールしないということ。)内容は以下に列挙します。 TypeScript を試してみたいだけたら上記の記事で十分です。 前提 Node.js がインストールされていることを前提とする VSCode を使う インストールと設定 TypeScript は特定のディ

              TypeScript の開発環境を作る。VSCode を基本に ESLint と Prettier も添えて。 - Multi Vitamin & Mineral
            • Airbnb JavaScript スタイルガイドの eslint 未対応ルールまとめ - Qiita

              Airbnb JavaScript スタイルガイドのうち、eslint でカバーできないルールのみを集めました。 Types 1.1 1.2 References 2.3 Objects 3.2 3.5 3.8 Arrays 4.2 4.3 4.4 4.5 4.6 4.8 Destructuring 5.3 Strings 6.2 Functions 7.4 7.5 7.7 7.8 7.9 アロー関数(Arrow Functions) 8.3 Classes & Constructors 9.1 9.2 9.3 9.4 Modules 10.1 10.2 10.3 10.8 Iterators and Generators 11.2 Properties 12.2 Variables 13.3 13.4 Hoisting 14.1 14.2 14.3 14.4 Comparison Ope

                Airbnb JavaScript スタイルガイドの eslint 未対応ルールまとめ - Qiita
              • 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.
                • 【ESLint】Flat Configの移行が面倒!だけどESLint v9を使用したいあなたへ

                  まじめに Flat Config の移行をするととっても時間かかりますよね?いくつもリポジトリ持ってるとどんどん時間が溶けていきます。 それでも ESLint v9 の新機能は使いたいんだよなーとか、ESLint v9 にしないと dependabot や renovate がうるさくてかなわんとか、という人(それはつまり僕のこと)のための選択肢をいくつか書いてみようと思います。 @eslint/migrate-config使う 物はこれです。 この方法は次のドキュメントに書いてあります。 以下のコマンドでとりあえず Flat Config で動きそうなeslint.config.*が生成されます。 npx @eslint/migrate-config .eslintrc.js # .eslintrc.json 使っている場合 # npx @eslint/migrate-config .e

                    【ESLint】Flat Configの移行が面倒!だけどESLint v9を使用したいあなたへ
                  • 【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で環境構築する手順
                    • 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
                        • husky(v7)でgit commit時にESLint/Prettier/commitlintを動かす

                          huskyのバージョンはv7を使います。もしv4を入れている場合は、手順が異なりますのでご注意ください。ちなみに、パッケージマネージャーはyarnを使います。 ESLint/Prettierの設定確認 ESLintやPrettierの導入は、本記事が冗長になるため割愛します。既にESLintやPrettierがインストール済みで、package.jsonが以下の設定になっていることが前提で書きます。 "scripts": { "lint": "eslint --fix src/**/*", "format": "prettier -w src/**/*", "fix": "yarn format && yarn lint" }

                            husky(v7)でgit commit時にESLint/Prettier/commitlintを動かす
                          • Node.js(ES6で実装)におけるESLint・Prettierの設定を1からやってみた|SHIFT Group 技術ブログ

                            はじめにこんにちは、SHIFT の開発部門に所属しているKatayamaです。 開発をしていく中に静的解析・構文チェックが常に走る状態になっておらず、開発後に一気に静的解析・構文チェックを実行すると、中々悲惨な事になってしまいます・・・。というわけで今回は JavaScript の開発をする上では必須とも言える静的解析・構文チェックツールである ESLint・prettier の設定を 1 からやってみたので、それについて書いていこうと思います。 合わせて、ESLint・prettier の設定に合わせた VS Code の設定も行ってみたので、それについても書いています。 ※なお、今回 ESLint の設定を行うプロジェクトは、Node.js で ES Modules を利用して実装しているものにります。Node.js で ES Modules を利用するための設定についてはNode.j

                              Node.js(ES6で実装)におけるESLint・Prettierの設定を1からやってみた|SHIFT Group 技術ブログ
                            • 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` とは何か?
                                  • eslint-plugin-vuejs-accessibility入門

                                    eslint-plugin-vuejs-accessibilityとは何か eslint-plugin-vuejs-accessibilityは、Vue.jsのコンポーネントにおけるアクセシビリティの問題点を検出するためのESLintプラグインです。 類似するものとしてeslint-plugin-jsx-a11yがあります。これはReactのJSXにおけるアクセシビリティの問題を検出するためのESLintプラグインです。今あるルールはこのプラグインから参考になっている部分がいくつかあります。 eslint-plugin-vue-a11yとの違い 元々は個人で開発していたeslint-plugin-vue-a11yというものがあります。 こちらのeslint-plugin-vue-a11yは現在メンテナンスがされておりません。今回紹介するeslint-plugin-vuejs-accessi

                                      eslint-plugin-vuejs-accessibility入門
                                    • Introduction | eslint-plugin-vue

                                      Introduction ​Official ESLint plugin for Vue.js. This plugin allows us to check the <template> and <script> of .vue files with ESLint, as well as Vue code in .js files. Finds syntax errors.Finds the wrong use of Vue.js Directives.Finds the violation for Vue.js Style Guide.ESLint editor integrations are useful to check your code in real-time. 🚥 Versioning policy ​This plugin is following Semantic

                                      • 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
                                          • TypeScript で eslint-plugin を作成する

                                            const Component = ({ text }) => { return ( <span>${text}</span> ); }; テンプレートリテラルっぽいですが、JSX の記述のどこかを間違えています。 仮に text という props の値が "sample" という文字列だとすると、出力されるHTMLは以下のようになります。

                                              TypeScript で eslint-plugin を作成する
                                            • 独学エンジニアほどlintを使うべきだ!ESLintとJavaScriptで解説するlintの必要性 - Qiita

                                              YouTubeに公開した動画「独学エンジニアほどlintを使うべきだ!ESLintとJavaScriptで解説するlintの必要性」の台本です。 動画の補足にご活用ください。 今日はlintを説明しよう! Lintってのは静的解析ツールの一種で、 要は「汚ないコードを自動的に掃除してくれる」 自動お掃除ロボット、 つまりルンバみたいなもんだ。 今日はlintが何をしてくれるものなのか、 そして、どうしてlintを使うといいのか説明しよう。 Lintと一口に言っても、 言語ごとにいろんなlintが存在するから 今日は多分みんなが一番よく 使うであろう言語JavaScriptのlint、 ESLintについて説明しよう。 まず、lintは何をしてくれるのか。 一言で言うと、 エンジニアのミスを掃除してくれる。 例えば、 importしてるのに使っていないモジュールとか、 定義したのに使われてい

                                                独学エンジニアほどlintを使うべきだ!ESLintとJavaScriptで解説するlintの必要性 - Qiita
                                              • 改めてFirestoreのドキュメント更新について調べてみて、そしてESLintのカスタムルールを作りました! - Qiita

                                                改めてFirestoreのドキュメント更新について調べてみて、そしてESLintのカスタムルールを作りました!JavaScriptFirebaseESLintFirestore はじめに Firestoreのドキュメントを更新するには、updateDoc, setDocの2種類がありますが、2種類あるだけに用法が違います。 結構注意しないと危ないので、実際に動かして挙動を確認しながら使い方を見ていきたいと思います。 あと、注意点に関してはESLintのカスタムルールを作ったので、それで防げることも確認しようと思います。 updateDoc v8であれば、DocumentReference.updateですね。 この関数は純粋に更新を目的とした関数です。 よって、存在するドキュメントでのみ更新が可能で、引数に指定したオブジェクトのキーのフィールドを上書き更新する操作が行えます。 存在しないド

                                                  改めてFirestoreのドキュメント更新について調べてみて、そしてESLintのカスタムルールを作りました! - Qiita
                                                • Vite+React+TypeScript+EsLintで、Importパスにエイリアスを使うためにハマったこと

                                                  環境 Windows11 node: v16.13.2 react: v17.0.2 その他 Vite + React + TypeScriptでパスエイリアスの設定方法 src/components/Page1.tsxファイルに定義しているPage1コンポーネントを 下記のように@から始まるパスとしてインポートできるように設定します。

                                                    Vite+React+TypeScript+EsLintで、Importパスにエイリアスを使うためにハマったこと
                                                  • package by feature なファイルの依存関係をルールで守る(eslint-plugin-boundaries)

                                                    package by feature と呼ばれるディレクトリ構成が一般的になってきました。[1] キカガクでも、新規に作成するプロジェクトでは package by feature なディレクトリ構成を採用したり、既存のプロジェクトを段階的に移行させたりしています。 今回は、この package by feature のディレクトリ分割を ESLint でルール化する方法を紹介します。 package by feature とは 詳しい説明は他の記事に譲りますが、ざっくり言うと、ファイルの種別ではなく機能を基準にディレクトリを分けていくようなディレクトリ構成の方法です。 これにより、1 つの機能に関わるファイルがまとまる(=コロケーション)ため、読むのも書くのも楽になります。 import ルールを設けたい package by feature でディレクトリを構成する場合、基本的に同じ機

                                                      package by feature なファイルの依存関係をルールで守る(eslint-plugin-boundaries)
                                                    • 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
                                                      • babel/eslint/babel-eslint-parser at main · babel/babel

                                                        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

                                                          babel/eslint/babel-eslint-parser at main · babel/babel
                                                        • 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. Dismiss alert

                                                              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
                                                              • SvelteのESLintおすすめ設定

                                                                0.はじめに最近ESLintの有用性を実感している清水琢巳です。 私は、株式会社ネクストビートで「おもてなしHR」という地方創生に関わる、宿泊業界に特化した転職支援プロダクトの開発をしています。 現在おもてなしHRでは、Svelteを採用して開発しています。 その開発する中で、SvelteのESLint設定について調査をしました。 今回はその結果を共有します。 ※ 本記事はeslint-plugin-svelte[1]を参考にし、私が翻訳した内容を記載しています。そのため言い回しが異なっている場合がありますが、ご了承ください。 目次本記事の構成は以下のとおりです。 1. SvelteのESLintの導入方法 2. plugin:svelte/recommendedの設定内容 3. 個別に追加したおすすめの設定 4. 私のベスト3 5. まとめ 6. 参考文献 7. 告知 1. Svelte

                                                                  SvelteのESLintおすすめ設定
                                                                • 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
                                                                  • 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
                                                                    • ESlintとPrettierの使い方と導入方法を初心者向けに解説 | 株式会社LIG(リグ)|DX支援・システム開発・Web制作

                                                                      こんにちは、新米エンジニアのにっしーこと西澤です。 今年の4月からエンジニアになった私が直面している悩みがあります。それは、「綺麗なコードを書きたいけど、そもそも綺麗なコードがなんなのかがわからない。ルールもわからないから、どうしたらいいかわからない……」ということ。 同じ悩みを持っている方は多いんじゃないでしょうか? そこでこの記事では、そんな悩みを解決してくれるESlintとPrettierについて紹介します! なぜESlintとPrettierがおすすめなのか 導入するメリットはズバリ、ある程度のクオリティを保ちながらコードを書けるようになることです。また、コードが綺麗になることで可読性が高くなり、コードレビューの手間が減るなどたくさんのメリットがあります。 ESlintとは? ESlintはJavaScriptやTypeScriptなどの静的解析ツールです。 と紹介されているのをよ

                                                                        ESlintとPrettierの使い方と導入方法を初心者向けに解説 | 株式会社LIG(リグ)|DX支援・システム開発・Web制作
                                                                      • ESLintでautofixに対応していないルールをautofixする - Qiita

                                                                        やりたいこと ESLintでは、autofixに対応しているルールと、していないルールがあります。 たとえば no-varはautofixされますが、 no-unused-varsはautofixされません。 勝手に修正されると困るものはautofixされない仕様なのでしょうが、 それでも「no-unused-varsを一括で修正したいなー」みたいなケースはあります。 eslint-plugin-autofixで解決 https://www.npmjs.com/package/eslint-plugin-autofix これを使うと、標準ではautofixできないルールをautofixしてくれちゃいます! pluginsの設定を入れて、 "autofix/ルール名"で列挙すればOK!

                                                                          ESLintでautofixに対応していないルールをautofixする - Qiita
                                                                        • ESLintのeslintrcをFlat Configに移行してみた

                                                                          はじめに みなさん、ESLint の Flat Config 移行は進んでいますか? 先日、ESLint の Flat Config への移行に関するブログが公開されました。 ざっくり下記のような流れで移行していくとのことです。 ESLint v9 (今年末 ~ 来年の初めにリリース予定)で flat config がデフォルトになり、eslintrc は非推奨になる。 eslint v10 (2024年末 ~ 2025 年初頭にリリース予定)で eslintrc が削除される 徐々に Flat Config に移行していかなければ...ということで、以前、筆者が作成した vite-plugin-sri2 で使用している eslintrc を Flat Config に移行してみました。 本記事では移行する時に対応したことを列挙していきます。 移行前後の比較 先に移行前の eslintrc

                                                                            ESLintのeslintrcをFlat Configに移行してみた
                                                                          • ESLint and Prettier with Vite and Vue.js 3 - Vue School Articles

                                                                            In the previous article of the "How to Structure a Large Scale Vue Application" series, we took a look at some standards that you can employ in your Vue.js application to keep your codebase predictable, easy to navigate, and understandable. Another step you can take to improve the developer experience when building a large scale application, especially with a team, is to setup some automated proce

                                                                              ESLint and Prettier with Vite and Vue.js 3 - Vue School Articles
                                                                            • ESLint Flat Config メモ

                                                                              設定ファイル 以下の3通り。 eslint.config.js eslint.config.mjs eslint.config.cjs プロジェクトのルートディレクトリに置く必要あり。 以下のようにexport defaultで配列を返し、その中にオブジェクトで設定を並べていく。 export default [ { rules: { semi: "error", "prefer-const": "error" } } ]; Configuration Objects export defaultで返す配列に含まれるオブジェクト(以降、「設定オブジェクト」)が持てるプロパティ一覧。 files globパターンの配列。設定オブジェクトに記述された設定を反映したいファイルを指定。 filesがない場合、その設定オブジェクトに記述された設定は他の設定オブジェクトで指定されたすべてのファイルに対

                                                                                ESLint Flat Config メモ
                                                                              • GitHub - azu/eslint-cjs-to-esm: ESLint wrapper for migration from CJS to ESM.

                                                                                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 - azu/eslint-cjs-to-esm: ESLint wrapper for migration from CJS to ESM.
                                                                                • Ignore Files - ESLint - Pluggable JavaScript Linter

                                                                                  You can configure ESLint to ignore certain files and directories while linting by specifying one or more glob patterns in the following ways: Inside of your eslint.config.js file On the command line using --ignore-pattern Ignoring Files In your eslint.config.js file, if an ignores key is used without any other keys in the configuration object, then the patterns act as global ignores. Here’s an exa

                                                                                    Ignore Files - ESLint - Pluggable JavaScript Linter