skilld-labs / zen

Fork of Drupal Zen theme https://www.drupal.org/project/zen
1 stars 5 forks source link

JavaScript: Static Type Checker #3

Open pabloguerino opened 7 years ago

pabloguerino commented 7 years ago

As we will have webpack and babel, we could add Flow

https://flowtype.org/

// @flow
function square(n: number): number {
  return n * n;
}

square("2", "2"); // Error!

it should be used to avoid hitting some bugs, and those will be detected at compilation time

Any thoughts? Worth it? it is to me and it should be quick to add and use

pabloguerino commented 6 years ago

This won't be added anytime son as we have higher priority in other issues.

andypost commented 6 years ago

Also we need to add https://axe-core.org