This is mad 🤯
oxc - The Oxidation #Compiler is creating a suite of high-#performance tools for the #JavaScript / #TypeScript language re-written in #Rust - by Boshen:
https://github.com/web-infra-dev/oxc
It's linter is 50 - 100 times faster than #ESLint...
https://github.com/Boshen/bench-javascript-linter
...and its parser is even 2x faster than #swc
https://github.com/Boshen/bench-javascript-parser-written-in-rust
#JS tooling goes brrrrrrrrrrr! 🚀
#compiler #performance #JavaScript #TypeScript #Rust #eslint #swc #js #rustlang #webdev #webDevelopment
Has anyone had success using Tailwind with Astro in VSCode? Turns out the Headwind extension, which I use to sort Tailwind classes on save, doesn't work on Astro files. I spent a couple hours last night trying to setup ESLint/Prettier to get the same functionality but I had a lot of issues. If anyone has a repo they could point to where that is working, please let me know.
#withastro #tailwindcss #eslint #prettier
You know the situation has got out of hand when you have to extract & publish a package to minimise the overhead of configuring your #JavaScript / #TypeScript projects :farnsworth: .
I'm almost ashamed of publishing this stuff ( https://www.npmjs.com/package/@coderspirit/eslint-config ) to #NPM, but it's too tedious to keep in sync and up to date my #ESLint and Prettierjs across all my projects.
Also: many people fall into cargo-cult practices, they don't even know why their config is like that 🐸
#javascript #typescript #npm #eslint
does anyone know how to prevent my attributes from formatting into a single line when saving my vue components?
I long ago lost the battle against prettier/eslint/vscode and just tend to leave it to it but I find this particularly irritating
#vue #nuxt #vscode #prettier #eslint #webdev
The #ESLint plugin for exhaustive deps in #react development is quite condescending to mature react developers. Yes, not only the react team is able to provide stable functions you can safely close over. However, the plugin never learned to support a list of functions that are known to be stable.
So we either have to live with no warnings at all (and miss potential issues), or live with a ton of warnings where we visually have to inspect whether the warnings consist of false positives only.
Well, that's a way to name a coding style rule that prevents == in favor of === instead: "eqeqeq"
#eslint
ESLintのルールから考えるJavaScriptのundefined判定
https://qiita.com/tomtomtommy18/items/662ccf6ee2ac6da731a3?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
#JavaScript #ESLint
Every so often I remember how messy it is to be in the #JavaScript ecosystem. Updating from #React 16 to 17 also requires updating #ESLint which requires updating its plugins (fuck you #AirBnB ), which requires you to update #webpack and it’s loaders/plugins, which requires you update #Babel. This doesn’t even account for any other random libraries you’re using so even then you’ll still end up getting #npm peer dependency errors.
Please tell me there’s a better way…
#javascript #react #eslint #airbnb #webpack #babel #npm
Today's my first day trying #deno.
Not sure how I feel about the built in #linter and formatter yet; me and #prettier are besties, and I have gotten used to #eslint
Still gonna give it a try.
#webDev #nodejs #node #npm #npmjs #javaScript #programming #code #dependencies
#dependencies #code #programming #javascript #npmjs #npm #node #nodejs #webdev #eslint #prettier #linter #deno
I'm really pulling out my hair here - is anyone familiar with getting TypeScript and ESLint set up? The eslint cli works fine, but in VSCode it's telling me that my .ts files aren't included properly.
Boosts appreciated here.
#javascript #typescript #eslint #vscode
Going to mess around with... I can't believe I'm saying this... #javascript. Going to stay vanilla (at least for now). I'm setting up an #ESLint file. ESLint actually seems pretty cool.
ESLint v8.40.0 released
https://eslint.org/blog/2023/05/eslint-v8.40.0-released/
#ES_Next_News #ECMAScript #JavaScript #ESLint
#es_next_news #ecmascript #javascript #eslint
Also #react mit #bootstrap und #typescript ist ja schon klasse fürs #Frontend, wenn man es denn mal so hinbekommt, dass es das macht was man will - mit dem #javascript wie ich es kenne, hat das aber überhaupt nichts mehr zu tun:
Allein den Editor #VScodium so zu trimmen, dass #prettier und #eslint mit den Konfigs in #react zusammenarbeiten war echt nervtötend.
Für das Backend mit #python #cgi wird das nicht so nervenaufreibend werden, hoffe ich...
#react #bootstrap #typescript #frontend #javascript #vscodium #prettier #eslint #python #cgi
Also #react mit #bootstrap und #typescript ist ja es schon klasse, wenn man es denn mal so hinbekommt, dass es das macht was man will.
Aber mit dem #javascript wie ich es kenne, hat das überhaupt nichts mehr zu tun.
Allein den Editor #VScodium so zu trimmen, dass #prettier und #eslint mit #react zusammenarbeiten war echt nervtötend.
Für das Backend mit #python #cgi wird das nicht so nervenaufreibend werden, hoffe ich...
#react #bootstrap #typescript #javascript #vscodium #prettier #eslint #python #cgi
#TIL there is a #eslint cli flag `--report-unused-disable-directives`
https://eslint.org/docs/latest/use/command-line-interface#--report-unused-disable-directives
My latest (and greatest) book, JavaScript All-in-One For Dummies, is available now!
Every junior developer or aspiring JS developer needs this book, imho.
The book teaches modern #JavaScript, how browsers work, using #VSCode like a pro, #Git, #prettier, #eslint, #vite, #webpack, #react, #vue, #svelte, #http, #jest, #node, #express, #mongodb, #mongoose, and finishes with a chapter on authentication with #jwt.
It took me 6 months to write and is over 800 pages.
#javascript #vscode #git #prettier #eslint #vite #webpack #react #vue #svelte #http #jest #node #Express #mongodb #mongoose #jwt
Announcing the `eslint-community` GitHub organization
https://eslint.org/blog/2023/03/announcing-eslint-community-org/
#ES_Next_News #ECMAScript #JavaScript #ESLint
#es_next_news #ecmascript #javascript #eslint
Everyone wants to add tools to the dev env, but nobody wants to support their team when they break the precommit hooks. #eslint #typescript #jest #tdd #danger #testCoverage #linting #husky
#husky #linting #testcoverage #danger #tdd #jest #typescript #eslint