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.
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
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.)
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.)
What should we do about the no-console rules? Should we allow it globally or add a log() utils function and allow it there?
I like the dangling comma because of the cleaner diff.
Here are the JS errors:
```
/home/travis/build/67P/kredits-contracts/lib/kredits.js
54:11 error Unexpected console statement no-console
65:5 error Unexpected console statement no-console
83:5 error Unexpected console statement no-console
/home/travis/build/67P/kredits-contracts/lib/utils/validator.js
10:94 error Unnecessary escape character: \+ no-useless-escape
10:97 error Unnecessary escape character: \- no-useless-escape
```
What should we do about the `no-console` rules? Should we allow it globally or add a `log()` utils function and allow it there?
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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-danglerule.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:recommendedruleset.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-consolerules? 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.jsonas it doesn't work for me.@bumi ❤️
but this looks more like a
kredits-2?So change and merge it!