Conversation
"openzeppelin-solidity": "^2.2.0" | ||
"eslint-config-keep": "git+https://github.com/keep-network/eslint-config-keep.git#0.1.2", | ||
"openzeppelin-solidity": "^2.2.0", | ||
"solium-config-keep": "git+https://github.com/keep-network/solium-config-keep.git#0.1.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the configs not dev dependencies?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh woops! Nice catch
files: '\.js$' | ||
language: script | ||
description: "Checks JS code according to the package's linter configuration" | ||
- id: lint-sol | ||
name: 'lint solidity' | ||
entry: /usr/bin/env bash -c "cd implementation && npm run sol:lint" | ||
entry: /usr/bin/env bash -c "cd solidity && npm run sol:lint" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I alllso don't love this, but don't have an immediate fix in mind. Though worth noting, it's usually safer to use sh
instead of having to /usr/bin/env bash
unless you're relying on bash-specific behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing I missed last time: we do need to align our JS style across Thesis, for simplicity's sake, but that will require moving formatting to prettier
, and we'll have to see if we can apply that to Solidity.
The biggest thing to flag is that we're using this prettier config:
semi: false
trailingComma: "all"
Looks like prettier supports Solidity via https://github.com/prettier-solidity/prettier-plugin-solidity, but it's maybe early days yet. I'd be okay with leaving Solidity with its own linter-based formatter initially if we find the prettier plugin is problematic.
@Shadowfiend what are your thoughts about "Code-quality rules" in context of using prettier?
Maybe it would be worth using both |
We should either redo or most likely close this and supersede with eslint alongside eslint-config-keep 0.3.0, which stacks prettier on top of eslint directly. We can also use |
Closing in favour of #328 |
Closes #42
WIP: code doesn't pass JS/SOL lint checks yetwow that was easier than I thought