This repository has been archived by the owner on Jun 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
plugin idea: eslint-plugin-tcomb #62
Comments
/cc @gcanti |
Description every check involving a string ( Example // bad
if (myvar === 'myenum') {
...
}
// good
if (myvar === MyEnum('myenum')) {
...
} |
Nice!
this check could be too broad, we probably have legit cases when you want to be able to === 'string'.. do we? |
I fear this will have counter-examples, can we think of one? |
In the meanwhile... https://github.com/buildo/eslint-plugin-tcomb |
@gabro awesome, I'll add a link to |
other ideas: |
We should open an issue (issues) on the new repo, I guess |
Ok, closing this and let's track stuff on the repo |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
A plugin to enforce some conventions in tcomb.
Possible rules:
no-unnamed-types
description
types should always have a name
specs
check last arguments of type definitions
no-loose-structs
description
structs should be
strict
by defaultspecs
second argument of
t.struct
should be an object withstrict: true
The text was updated successfully, but these errors were encountered: