github.com/eslint/eslin...
It is *wild* how simple that change is for that kind of startup perf boost ๐
@namchee.dev.bsky.social
github.com/eslint/eslin...
It is *wild* how simple that change is for that kind of startup perf boost ๐
Main reason why I wrote this is because I've tried this API for a work-related task before, but it didn't work out at all.
Reasons explained in `Is It a Navigation?` section
After 3 months of not writing anything, finally finished writing a blogpost explaining a rarely used, but prominent 5 years old API: Scroll to Text Fragment
www.namchee.dev/posts/anchor...
Published empathic@1.1 ๐ (benchmarks below)
Many packages are eagerly joining the @e18e.dev effort but (understandably) have existing support restrictions to maintain & so can't make as much progress as they'd like.
This release helps with that~!
(cont.)
Beginning the month with yet another corrupted .git folder in my WSL is really great. 3rd times already this year.
Really wonder if I should drop WSL completely and switch to pure Linux, especially since Linux gaming is great now.
TypeScript's `--erasableSyntaxOnly` Flag
oida.dev/erasable-syn...
#CSS text-box
a very exciting feature!
available in:
Chrome 133 & Safari 18.2
My post on Chrome Developers:
developer.chrome.com/blog/css-tex...
โช nerdy.dev/text-box-trim
New in Chrome 133 โ which goes stable on Feb 4 โ is a new method to move an element around the DOM.
Unlike the classic way of removing+reinserting a node, this moveBefore method preserves the elementโs state!
Iframes remain loaded, animations donโt restart, โฆ
DEMO: codepen.io/bramus/full/...
Is this documented somewhere?
15.01.2025 11:58 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0And now, we can format without having to focus too much on the tools that we use.
I hate when people starts to `pls migrate to Y, X sucks now!` every time these kind of tools comes out.
They're forgetting the main purpose of these tools: make your code great
Lately, we also have eslint-react (www.npmjs.com/package/@esl...), which applies ESLint rules for your React-based projects without being too binded to `react-dom`
14.01.2025 15:03 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0First, we have Anthony Fu's ni (github.com/antfu-collec...), which makes you ignore package manager wars.
14.01.2025 15:02 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0It's nice to see the JS ecosystem moving to x-agnostic way.
14.01.2025 15:01 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0๐ Motion springs into the world of CSS generation.
Generate spring animations with our upgraded, simplified spring() function. With guides for:
- @astro.build
- @vuejs.org
- @react.dev Server Components
And more!
๐ motion.dev/docs/css
You can use ranges too! VitePress has integrated a lot of Shiki transformers internally.
vitepress.dev/guide/markdo...
need product differentiation?
overhire a #CSS front-end team and ask them to:
- polish whatever
- add delight wherever
and watch as your product becomes smooth and buttery while everyone else's gather dust and crust
UI is a huge space offering differentiation via quality
Day 21. We can (again) extend the previous day functionality.
We can check if an element exist in an array using `extends`
Day 20. We can re-use the parser code from the previous day. But we do need to implement the result object logic.
20.12.2024 09:27 โ ๐ 1 ๐ 0 ๐ฌ 1 ๐ 0It's self-review time again
14.11.2024 13:24 โ ๐ 234 ๐ 24 ๐ฌ 14 ๐ 3Day 19. The trick here is to parse the line one-by-one and trimming them.
19.12.2024 11:36 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0TIL: GitHub has ๐ in issues now.
18.12.2024 14:59 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0Day 18. We are dealing with unprovided generics.
The trick is to assert whether the generic is provided or not. If it's not provided, access the array element. Otherwise, return the generic as-is.
Day 17. We can strongly-type the composition and utilities using generics.
To avoid type narrowing for string utilities, we can recast it using string utility types.
Day 16. We can deal with recursion with the help of `ReturnType`
17.12.2024 11:57 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0Screenshot of code showing autocomplete of links
I just published version 1.0 of the astro-typed-links @astro.build integration! It greatly simplifies its usage and DX. Check it out at github.com/florian-lefe...
17.12.2024 09:25 โ ๐ 32 ๐ 3 ๐ฌ 1 ๐ 0Day 15. We are dealing with string inference combined with recursions.
Since I don't want to deal with some funny cases, I just implemented hacky helper functions to deal with it (don't do this ๐)
Day 14. We are introduced with AsyncGenerator type which is a signature for generator functions.
To get the return type, we can `infer` it.
A successor of github.com/nvbn/thefuck?
14.12.2024 10:41 โ ๐ 2 ๐ 0 ๐ฌ 0 ๐ 0When reviewing a PR, please ensure that your comments and change request are submitted in bulk to avoid context switching.
Over the week, I've experienced this with my colleague and it really stresses me out when after addressing the PR comments, you still see comments popping out for 20 times
Day 13, this one is a bit difficult as we need to understand covariant and contravariant of TypeScript.
To enforce an invariant, we need to apply `out` to enforce contravariance and `in` to enfore covariance to the generic type.