12

TL;DR:

  • Many websites are (unintentionally) shipping ES6+ code in production. This indicates that transpiling to ES5 is outdated practice.
  • We need a better baseline for transpilation, which should be a moving target.
  • We should transpile code in node_modules, at least for production.
[-] pastelmind@programming.dev 4 points 2 years ago

Fork is much better than GitHub Desktop, you can use it without paying indefinitely

1
submitted 2 years ago* (last edited 2 years ago) by pastelmind@programming.dev to c/javascript@programming.dev

The next minor release of ESLint will deprecate core formatting rules. [The dev team] recommends you use a source code formatter [Prettier, dprint] instead.

[-] pastelmind@programming.dev 2 points 3 years ago

Stories are like tests. You need to mock your stores if you want to isolate your stories. Just like how you mock HTTP APIs or database connections when writing tests. This is the cost of writing testable code.

[-] pastelmind@programming.dev 3 points 3 years ago

console.count()

1
submitted 3 years ago* (last edited 3 years ago) by pastelmind@programming.dev to c/javascript@programming.dev

The Rome project appears to be dead. Several of its maintainers have stepped up to create a fork named Biome.

See also: tweet by Jonny Burger

pastelmind

0 post score
0 comment score
joined 3 years ago