typescript-eslint
node-clinic
typescript-eslint | node-clinic | |
---|---|---|
129 | 18 | |
15,906 | 5,866 | |
0.5% | 0.3% | |
9.8 | 2.5 | |
4 days ago | 12 months ago | |
TypeScript | 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.
typescript-eslint
-
How to build a MCP (model context protocol) server for UI libraries + repo
TypeScript Best Practices
- BookMS
-
JavaScript's New Superpower: Explicit Resource Management
Here’s some relevant discussion about some of the footguns:
https://github.com/typescript-eslint/typescript-eslint/issue...
https://github.com/tc39/proposal-explicit-resource-managemen...
I imagine there will eventually be lint rules for this somewhere and many of those using such a modern feature are likely to be using static analysis via eslint to help mitigate the risks here, but until it’s more established and understood and lint rules are fleshed out and widely adopted, there is risk here for sure.
Seems a bit like popular lint library maintainers are overly wary to add rules before it’s better understood through wider adoption and potential adopters are wary of using it until footguns are mitigated — not quite a standstill but maybe not great either
-
Set up a new React project: Vite, TypeScript, ESLint, Prettier and pre-commit hooks
However, I prefer more thorough rules like checking unused type imports or type narrowing problems. In order to enable these checks, we need to tweak eslint.config.js. I prefer simply adding recommendedTypeChecked config to the project. Don't forget that you also need to adapt parserOptions to this change.
-
Eslint rules for dealing with Enums peculiarities
EsLint: New to ESLint? It helps you write better JavaScript and TypeScript. https://typescript-eslint.io/
-
TypeScript strictly typed - Part 1: configuring a project
For ESLint + TypeScript ESLint, with the new flat config eslint.config.js:
-
Mastering Type-Safe JSON Serialization in TypeScript
Typescript-eslint can assist in this task. This tool helps identify all instances of unsafe any usage. Specifically, all usages of JSON.parse can be found and it can be ensured that the received data's format is checked. More about getting rid of the any type in a codebase can be read in the article Making TypeScript Truly "Strongly Typed".
-
Oxlint – written in Rust – 50-100 Times Faster than ESLint
> Only lint files that have changed? How hard that is?
Quite hard, especially since type-aware rules from e.g. https://typescript-eslint.io/ mean that changing the type of a variable in file A can break your code in file B, even if file B hasn't changed.
-
How to Do a TypeScript Conversion: an opinionated take on gradual conversions
The article only touches this: when converting to TypeScript, `any` is useful, but in the end you don't want this type in your codebase - so don't forget to use typescript-eslint [0] and turn on those no-unsafe-* rules which guard against `any` leaking into your code.
[0] https://github.com/typescript-eslint/typescript-eslint
- How do I add additional rules to my typescript-eslint settings?
node-clinic
-
10 Performance Tips for Scaling Your Node.js API
clinic.js: visualizes your app’s performance and identifies event loop blocks, CPU spikes, and memory issues.
-
Why Is Profiling Important for Node.js Applications?
Node Clinic is an excellent tool for profiling Node.js applications. It offers multiple tools like:
-
Node.js Performance Optimization: Writing Faster Server-Side Code
Node.js thrives on its event-driven, non-blocking architecture. However, blocking the event loop with synchronous operations can cripple performance. Use tools like the node-clinic suite to identify bottlenecks. Offload CPU-intensive tasks to worker threads using the worker_threads module to keep the main thread responsive.
-
Show HN: Made a small JavaScript benchmarking app – BenchJS
Clinic.js was promising but it's not maintained anymore, would be great if we had a modern alternative: https://clinicjs.org/
-
Why you should start profiling your application on the production
It's basic, but it works. You can see what function or 3rd library is after your resources and debug them locally (For example, by using ClinicJS - https://clinicjs.org/)
-
From Good to Great: Scaling Applications with TypeORM Optimization
Clinic.js
-
Measuring the performance of JSS apps
Clinic.js - performance analysis tooling.
-
Node 18.x async code performance problem?
I’ve also seen some pretty bad event loop saturation causing significant delays. Run this https://clinicjs.org
-
7 Best Tools for Monitoring Node.js Servers
Clinic.js includes three tools to help diagnose and pinpoint performance issues in Node.js applications. It’s surprisingly easy to use. All you need to do is install the module from npm and run it. This will generate reports for you that make troubleshooting much easier.
-
GraphQL Fastify vs Apollo Server — Learnings from the real world
To compare the two servers, we used two packages. The first one was ClinicJS, an open-source set of tools used to diagnose NodeJS performance issues, which also gives you suggestions and points you in a direction to fix the diagnosed problems. The second one was hey, a CLI tool to send some load to the server. Below we show how we use them and the results of these comparisons.
What are some alternatives?
eslint-config-google - ESLint shareable config for the Google JavaScript style guide
PM2 - Node.js Production Process Manager with a built-in Load Balancer.
ts-node - TypeScript execution and REPL for node.js
autocannon - fast HTTP/1.1 benchmarking tool written in Node.js
ts-standard - Typescript style guide, linter, and formatter using StandardJS
appmetrics - Node Application Metrics provides a foundational infrastructure for collecting resource and performance monitoring data for Node.js-based applications.