Skip to content

Commit

Permalink
Add solidity linting and Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachnid committed May 23, 2021
1 parent 426d5a5 commit ec6afb5
Show file tree
Hide file tree
Showing 5 changed files with 1,923 additions and 89 deletions.
2 changes: 0 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ module.exports = {
env: {
mocha: true,
},
extends: ["airbnb", "plugin:prettier/recommended"],
plugins: ["babel"],
rules: {
"prettier/prettier": ["error"],
"import/extensions": [
"error",
"ignorePackages",
Expand Down
9 changes: 9 additions & 0 deletions .soliumrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "solium:all",
"rules": {
"indentation": ["error", 4],
"quotes": ["error", "double"],
"arg-overflow": "off",
"blank-lines": "off"
}
}
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
sudo: required

dist: trusty

language: node_js

node_js:
- '10'
install:
- npm install -g truffle
- npm install -g ganache-cli
- npm install
env:
- TASK=test
- TASK=lint
matrix:
fast_finish: true
allow_failures:
- env: TASK=lint
before_script:
- ganache-cli > /dev/null &
- sleep 5
script:
- npm run $TASK

notifications:
email: false
Loading

0 comments on commit ec6afb5

Please sign in to comment.