With AirBnB this code is bad:
Greeter.prototype.greet = function () {
return `${greetText}, ${this.greetTarget}`;
};
This article helps me to fix code:
Greeter.prototype.greet = function greet() {
With AirBnB this code is bad:
Greeter.prototype.greet = function () {
return `${greetText}, ${this.greetTarget}`;
};
This article helps me to fix code:
Greeter.prototype.greet = function greet() {
Prefer (or require) named exports from all modules, regardless of how many exports they have! By Thomas Randolph 2019.09.05
Before airbnb-base we can use only one rule: "import/no-default-export": "error"
but after airbnb (which want to use default exports) you must to add second rule: "import/prefer-default-export": "off"
Why I've stopped exporting defaults from my JavaScript modules by Nicholas C. Zakas 2019.01.15
Jest added to project with aliasing and eslint rules.
Jest is not supported esm & esm mocks yet, that's why we are forced to use jest-esm-transformer (Babel transform under the hood test modules & *.spec
scripts to CommonJs).
Without transform
configuration we have error: SyntaxError: Cannot use import statement outside a module
.
Nowadays (2022-01-12) we can esm without Babel only by ts-jest?
No! ts-jest uses Babel too and is only needed to [catch addi
GDPR article about on Habr.
Official documents, e.g. WP244
Google 50 Million euros penalty
Пакет Яровой нарушает GDPR Интернет в эпоху границ и ограничений – возможно ли регулировать технологии?
Восемь лет в Opera by Vadim Makeev, 2016.11.21
HTTP/2 For Web Developers by Ryan Hodson, 2015.12.10
Concatenating files (and inlining) is no longer a best practice in HTTP/2 (awful for caching) With HTTP/2 Caching strategy is to change single file rarely
What is the difference between HTTP/1.1 pipelining vs HTTP/2 multiplexing? HTTP/2 optimizing. Presentation, video, habr article and developers.google article by Ilya Grigorik.
Если не использовать TypeScript, который при tsc-трансформации в js пропишет нужные пути в import при помощи transform и карты путей/alias, то в браузерах в importmap следует указывать путь не только для сторонних библиотек, но и под каждый импортируемый через alias файл! Спецификация importmap не предполагает glob-масок.
При этом eslint, jest и webpack конфигурируются по-своему, получаем дублирование кода. Нужда в конвертерах [eslint-typescript](http
Please, stop using classes in JavaScript!!! (not TS) by Michael Krasnov, 2020.01.12
ReactJS: Classes confuse both: people and machines.
Refactoring OOP code is extremely risky! Complex dependency graphs and state scattered all over OOP codebase, make it impossible for the human brain to consider all of the potential issues.
Comparison es6 classes with es5 abilities. Way to VanillaJS OOP: Object literal vs constructor+prototype.
eslint since v7 warns about deprecation of root config
Now, if you have eslint config in your project and global config,
you should define it as root config (loss or copy/paste all recommended rules - preferred way with saving rules relate to project)
or define extends
key with file system dotted path! 🤦♂️
If you want to have shared rules for different projects and don't want hardcoding path to file with common rules, you should create your custom eslint plugin with your rules (may be based on other recommended rules).
GitHub for default branch decided to change the name "Master" 12.06.2020 on twitter. You can join to anti-renaming petition