Add linter and travis.yml #97
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "chore/linter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Let's discuss the linting rules!
I adopted Bastis use of a space between the function name and the parentheses:
serialize () {
and added a
comma-dangle
rule.I have no idea on the solidity rules. Right now it complains about spaces...
https://github.com/protofire/solhint
https://github.com/protofire/solhint/blob/master/docs/rules.md
I decided to use the
solhint:recommended
ruleset.yay! 👍
I will look at that solidity code and try to update it. - no idea about the rules there.
That dangling comma looks slightly revolting to me, but I'll give it a try if you think it's better.
Definitely great to have linting in the first place!
(By the way, Travis is failing.)
I like the dangling comma because of the cleaner diff.
Here are the JS errors:
What should we do about the
no-console
rules? Should we allow it globally or add alog()
utils function and allow it there?I found another linter https://github.com/duaraghav8/Ethlint it is used by aragon-apps so maybe we should consider to use it as well...
I did not have the time to look at the solidity stuff and also probably won't in the next days.
maybe we merge this without the solidity part?
@bumi I disabled the solidity checks for now. Would be great to merge as is and pickup on solidity later.
Someone needs to update the
package-lock.json
as it doesn't work for me.@bumi ❤️
but this looks more like a
kredits-2
?So change and merge it!