typescript-eslint
eslint-stylistic
typescript-eslint | eslint-stylistic | |
---|---|---|
129 | 4 | |
15,906 | 1,807 | |
0.5% | 1.3% | |
9.8 | 9.5 | |
4 days ago | 8 days ago | |
TypeScript | TypeScript | |
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?
eslint-stylistic
-
Should you stop using prettier? Maybe
@stylistic/eslint can be configured to pretty much replicate prettier's behaviour, but I'm an all or nothing guy. If I'm going to add an extensive plugin I'd like to use it properly, replacing my react and typescript rules with it as they recommend. I will probably get round to this when I have the time, updating my core eslint config
-
ESLint adoption guide: Overview, examples, and alternatives
The npm package eslint-config-prettier eventually disables any ESLint rules dealing with code formatting to avoid conflicts with Prettier. You can see this with the handy ESLint Config Inspector: The second option is to use ESLint Stylistic. The primary focus of this project is on all stylistic rules including code formatting. This project was initiated as ESLint and typescript-eslint teams decided to deprecate formatting/stylistic-related rules.
- ESLint Stylistic – stylistic formatting for ESLint
-
Speeding up the JavaScript ecosystem - Polyfills gone rogue
Perhaps some polyfills are required regardless, see this discussion here: https://github.com/eslint-stylistic/eslint-stylistic/issues/43
What are some alternatives?
eslint-config-google - ESLint shareable config for the Google JavaScript style guide
javascript-style-guide - This project is a code style guide of all basic back- and front end project used at Anolilab.
ts-node - TypeScript execution and REPL for node.js
eslint-plugin-jest - ESLint plugin for Jest
ts-standard - Typescript style guide, linter, and formatter using StandardJS
eslint-config-galex - hopefully the last eslint config you'll ever need - customizable & modern best practices for JS, TS, Node, React, Remix, Next, Jest, testing-library & storybook