ESLint
husky
Our great sponsors
ESLint | husky | |
---|---|---|
371 | 122 | |
24,066 | 31,360 | |
0.7% | - | |
9.7 | 8.8 | |
about 6 hours ago | 5 days ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ESLint
-
6 Tools To Help Keep Your Dependencies And Code More Secure
ESLint
-
Six Factors That Raise The Risk Of Bugs In A Codebase
1. Lack of Static Code Analysis Static code analysis tools like TypeScript and ESLint play a crucial role in identifying and preventing bugs. TypeScript provides static typing, enhancing the robustness of the code. ESLint detects issues and enforces coding standards. The absence of these tools can significantly elevate the likelihood of bugs due to the lack of early detection and guidance provided during development.
-
Linting
The industry standard for JavaScript is ESLint. VS Code has an ESLint extension. Here is a guide.
-
Why it is Important to Update Linters and How to Do it Right
All modern linters incorporate functionality for extending configurations, although the syntax for this is often implemented differently. Taking ESLint as an example, in its latest versions, the primary extension method is through the use of the spread operator. Let's take a look at an example:
-
How to Improve Development Experience of your React Project
The next tool is ESLint. This tool helps you find issues in your code and highlights errors. You'll find many plugins for ESLint that can help you configure it the way you want, or you can even use shared configs.
-
Supercharge Your Mobile Dev Skills: 10 Essential Tools for Max Efficiency
Linters: Tools like ESLint, TSLint, SwiftLint, etc., can help you adhere to a consistent code style and identify potential errors.
-
10 best Javascript debugging tools
ESLint is an open-source JavaScript linting utility designed to statically analyze your code and help you catch errors, bugs, stylistic issues, and suspicious constructs. Unlike other debugging tools, ESLint primarily focuses on code quality and coding style, ensuring that your codebase remains consistent and free from potential bugs. With ESLint, you can identify issues before executing your code, saving you time and effort in the debugging process.
-
Level Up Your TypeScript Projects: Discover the Power of ESLint and Prettier
In the dynamic world of full-stack development, incorporating linting and formatting tools such as ESLint and Prettier, along with your TypeScript projects, is essential. This integration is particularly important in team settings to ensure code uniformity in syntax and style. Additionally, these tools play a vital role in early detection of errors and bugs. In this article, we'll explore how these tools automate the coding process to produce clean, consistent, and production-ready code.
-
JavaScript Naming Conventions are Important
In conclusion, it is essential to remember that while naming standards are important, they are not absolute. Every project has its peculiarities, and it is crucial to define your conventions. The main thing is that they should exist, and you adhere to them to ensure consistency in the code and improve collective productivity. Also, if possible, try to delegate code style issues to tools like ESLint to simplify and enhance the development process.
-
Web scraper in Nuxt 3 - part I - Introduction and setting up
Starting a new project with Nuxt is very simple. In fact, technically all you need are just two files. However, for the begining you should rather follow the Nuxt official recommendations. Or, if you like to, you may also use my own Nuxt Starter project which is already prepared and a bit enhanced with eslint, which I find invaluable in terms of code maintenance. To start benefiting from eslint’s static code analysis, you need to install an extension into VS Code.
husky
- Padronizando seu código através dos Git Hooks
- Angular 14 + Prettier + Husky Setup
-
How Automation Saved Me from Oops Moments: Never Skip Tests in Production Again!
We were already using lint-staged and have a pre-commit hook in place using Husky in our project for linter and prettier. So it made sense to add a check here.
- Pre-commit with husky & lint-staged
-
How to Improve Development Experience of your React Project
Now, let's talk about Husky. It's a wonderful tool that enables you to run scripts on any Git hooks. We'll add a pre-commit hook to run ESLint and Stylelint checks before committing. This ensures that we don't commit code with errors.
- Como adicionar hooks aos commits de seu projeto utilizando Husky
-
My script to install husky, commitlint and lint-staged with zx
In all my projects I use husky, lint-staged and commitlint.
-
Joys and woes of monorepos
One of the greatest things about a monorepo is that you can centralise a lot of tooling configuration. For example, chuck a .prettierrc in the root of your monorepo and you'll never have arguments about code style again. Put a few base tsconfigs in the there to extend, and suddenly TypeScript behaves with beautiful consistency across all your packages. Add formatting, linting and husky as dependencies in the root of your workspace and you no longer need to work through upgrading everything individually when a new version comes out.
-
Automating code patterns with Husky
In the world of software development, maintaining consistent code quality and ensuring that the codebase adheres to predefined patterns and guidelines is crucial. However, manually enforcing these standards can be time-consuming and error-prone. This is where automation tools like Husky, Lint-Staged, Commitlint, and Commitizen come to the rescue. In this post, we will explore how these tools can be combined to streamline your development workflow.
-
Adding code formatting, linting, pre-commit hooks and beyond...
This week I had to set up and configure Prettier, ESLint, Husky & lint-staged dependencies to my codebase for better code formatting and linting and VSCode integration with prettier, eslint and pre-commit hooks using husky and lint-staged for achieving automation for linting and formatting.
What are some alternatives?
XO - ❤️ JavaScript/TypeScript linter (ESLint wrapper) with great defaults
Standard - 🌟 JavaScript Style Guide, with linter & automatic code fixer
simple-git-hooks - A simple git hooks manager for small projects
prettier - Prettier is an opinionated code formatter.
JSHint - JSHint is a tool that helps to detect errors and potential problems in your JavaScript code
lerna - :dragon: Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository.
JSLint - JSLint, The JavaScript Code Quality and Coverage Tool
pre-commit - A framework for managing and maintaining multi-language pre-commit hooks.
Babel (Formerly 6to5) - 🐠 Babel is a compiler for writing next generation JavaScript.
standard-version - :trophy: Automate versioning and CHANGELOG generation, with semver.org and conventionalcommits.org
jsinspect - Detect copy-pasted and structurally similar code