Tito Ciuro · @titociuro
96 followers · 1209 posts · Server mstdn.social

Is the any /#typescript plug-in to enable a rule so that anonymous objects are forbidden? I’d like to make sure that all objects are backed by a type. So, disallow something like const foo = { a: 5 }. Is it possible?

#ESLint

Last updated 2 years ago

Braw :blob_cat_melt: · @brawaru
58 followers · 692 posts · Server mstdn.social

To make ensure you're writing safe code, you need to properly configure it, but proper configuration is really messy, and tools like don't even support it. So you are left with the single TSConfig that makes TypeScript lie and deceive you.

This is the state of modern development experience.

#JavaScript #ESLint #typescript

Last updated 2 years ago

Harry W. · @hazz223
77 followers · 404 posts · Server mstdn.social

I've got such a weird problem; it looks like is running in it's own thread. So when running `yarn lint` it finishes, then 5 seconds later it takes over the console again with the actual output. This is causing havoc!
Any ideas?

#Code #js #JavaScript #ESLint

Last updated 2 years ago

Peponi · @pep0ni
56 followers · 612 posts · Server swiss-chaos.social

blog.bitsrc.io/why-is-my-jest-

I learned:

* to link the Chrome profile with Node scripts to profile performance
* using an eslint rule to NOT import from index files in tests
* that setupTests.ts runs NOT once ,on the startup of all tests
* to deactivate type checking for the tests

#es6 #JS #javascript #ts #typescript #react #jest #Babel #webpack #performance #test #unittest #profiling #ESLint

Last updated 3 years ago

Greg Paciga · @greg
37 followers · 39 posts · Server tech.lgbt

Them: "we can't start to the code now, the tests are all flakey or unstable"

Me: "perfect, if the tests are already broken we don't need to worry about breaking them even more"

#ESLint #testautomation

Last updated 3 years ago

Peponi · @pep0ni
53 followers · 596 posts · Server swiss-chaos.social

> Why is now being used to replace parts of the JavaScript web ecosystem like minification , transpilation , formatting , bundling , linting , and more?

leerob.io/blog/rust

#rust #Terser #Babel #Prettier #webpack #ESLint #es6 #JS #javascript #webdevelopment #frontend #webdev

Last updated 4 years ago