December 2018
Intermediate to advanced
642 pages
15h 5m
English
Even though ESLint has us well covered for avoiding JS bad coding practices, it doesn't do much with regard to data types, but Flow can help us in this area.
There is a set of rules you can apply, and you will configure them through the .flowconfig file we mentioned in the previous section:
[lints]all=warnunsafe-getters-setters=off
The first line, all=warn, is a catch-all, which defines the standard setting for all rules; possible values are off, warn, and error. After that, you can specify settings for individual rules; for example, in the preceding code I decided to ignore warnings about unsafe getters or setters. Some rules are as follows:
Read now
Unlock full access