Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

quick-lint-js finds bugs in JavaScript programs

License

NotificationsYou must be signed in to change notification settings

quick-lint/quick-lint-js

Repository files navigation

quick-lint-js

quick-lint-js finds bugs in JavaScript programs.

quick-lint-js finds many bugs, including:

  • Using a variable which does not exist
  • Assigning to aconst variable
  • Usingawait in a non-async function
  • Syntax errors

Demonstration of quick-lint-js in Visual Studio Code

Installing

There are many ways to install quick-lint-js, depending on how you prefer towork! Here are the environments we support:

  • CLI (Command-Line Interface)
  • LSP (Language Server Protocol)
  • Editor Plugins for:
    • Visual Studio Code (VSCode)
    • VSCodium
    • Vim/Neovim
    • Sublime Text
    • Emacs
    • Kate

For detailed installation instructions, visit thequick-lint-js installationguide.

Examples

Here are some common bugs that quick-lint-js can catch:

Example 1: Undefined Variable

constoccupation="Engineer";console.log("Welcome, "+ocupation);// Typo: 'ocupation' should be 'occupation'

Output:use of undeclared variable: ocupation

Example 2: Reassigning a const variable

constname="John";name="Doe";// Error: Cannot reassign a constant

Output:assignment to const variable: name

Example 3: Using await in a non-async function

functiongetData(){awaitfetch("/data");}

Output:await used in non-async function

These are just a few examples of how quick-lint-js can help identify commonissues in your JavaScript code.

Contributing

We’re always happy to welcome new contributors! If you’d like to contribute toquick-lint-js, please refer to the contributing guide on our website for all thedetails.

Check out thecontributing guide here.

Contact

If you have any questions or feedback, feel free to reach out:

  • Bugs and feature requests: File an issue on GitHub.
  • IRC: Ask questions in the#quick-lint-js channelon Libera.Chat.
  • Security bug reports (private disclosure): Email us atstrager.nds@gmail.com.

About

quick-lint-js finds bugs in JavaScript programs

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Contributors83


[8]ページ先頭

©2009-2025 Movatter.jp