Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

LinterとFormatterの違い・役割

Last updated at Posted at 2024-07-31

Linter

コードの問題点がないか確認する静的解析ツール

問題点があれば赤い波線や豆電球の様なマークを問題になりうる部分のみに表示する。
使う言語によってLinterを選びましょう。
Linter 例:ESLint

Formatter

コードのスタイルチェックをしコードの整形をします。

コードの見た目を自動修正してくれます。
コードの整形に便利なツールです。
Formatter 例:Prettier

Linter Formatterの利点

  • LinterとFormatterを使うと見落としのミスが減ったります。
  • コードを書いた本人以外が見てもコードが整形されているので見やすくなります。
  • 開発者間で同じようなスタイルになりバラつきが減ります。

<使う言語>< Linter or Formatter >と検索して自分にあったツールを使ってみてください。

私はJavaScriptを書く際は
Linter:JavaScript Standard Style 

Formatter:Prettier

を使用しています。
ちなみにVscode(Visual Studio Code)でプログラムを書いてます。
同じなら拡張機能の所からインストール可能です。

0
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

Qiita Conference 2025 will be held!: 4/23(wed) - 4/25(Fri)

Qiita Conference is the largest tech conference in Qiita!

Keynote Speaker

ymrl、Masanobu Naruse, Takeshi Kano, Junichi Ito, uhyo, Hiroshi Tokumaru, MinoDriven, Minorun, Hiroyuki Sakuraba, tenntenn, drken, konifar

View event details
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?