Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quick-lint/quick-lint-js
quick-lint-js finds bugs in JavaScript programs
https://github.com/quick-lint/quick-lint-js
beginner-friendly javascript linter parser
Last synced: 25 days ago
JSON representation
quick-lint-js finds bugs in JavaScript programs
- Host: GitHub
- URL: https://github.com/quick-lint/quick-lint-js
- Owner: quick-lint
- License: gpl-3.0
- Created: 2020-04-01T05:57:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-25T02:17:14.000Z (8 months ago)
- Last Synced: 2024-04-14T09:14:08.330Z (7 months ago)
- Topics: beginner-friendly, javascript, linter, parser
- Language: C++
- Homepage: https://quick-lint-js.com
- Size: 33.6 MB
- Stars: 1,476
- Watchers: 10
- Forks: 193
- Open Issues: 403
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: COPYING
Awesome Lists containing this project
- awesome-f2e-libs - **quick-lint-js** - 基于 C++。 (打包工具 / 非 JavaScript 编译工具)
- awesome-fe - **quick-lint-js** - 基于 C++。 (打包工具 / 非 JavaScript 编译工具)
README
# 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 a `const` variable
* Using `await` in a non-`async` function
* Syntax errors![Demonstration of quick-lint-js in Visual Studio Code](plugin/vscode/demo.webp)
## Installing
There are many ways to install quick-lint-js, depending on how you prefer to
work! 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
- KateFor detailed installation instructions, visit the [quick-lint-js installation
guide](https://quick-lint-js.com/install/).## Examples
Here are some common bugs that quick-lint-js can catch:
### Example 1: Undefined Variable
```js
const occupation = "Engineer";
console.log("Welcome, " + ocupation); // Typo: 'ocupation' should be 'occupation'
```
Output: `use of undeclared variable: ocupation`### Example 2: Reassigning a const variable
```js
const name = "John";
name = "Doe"; // Error: Cannot reassign a constant
```
Output: `assignment to const variable: name`### Example 3: Using await in a non-async function
```js
function getData() {
await fetch("/data");
}
```
Output: `await used in non-async function`These are just a few examples of how quick-lint-js can help identify common
issues in your JavaScript code.## Contributing
We’re always happy to welcome new contributors! If you’d like to contribute to
quick-lint-js, please refer to the contributing guide on our website for all the
details.Check out the [contributing guide here](https://quick-lint-js.com/contribute/).
## 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][quick-lint-js-irc-web] channel
on Libera.Chat.
- **Security bug reports** (private disclosure): Email us at
[[email protected]](mailto:[email protected]).[quick-lint-js-irc-web]: https://kiwiirc.com/nextclient/irc.libera.chat/#quick-lint-js