Add contract test linting

This commit is contained in:
2019-04-24 19:56:37 +02:00
parent 6f2097ed46
commit c9fed46054
8 changed files with 35 additions and 25 deletions

12
apps/.eslintrc.js Normal file
View File

@@ -0,0 +1,12 @@
module.exports = {
'globals': {
contract: true,
describe: true,
it: true,
},
rules: {
'no-unused-vars': ['error', {
'argsIgnorePattern': '^_',
}],
}
}

View File

@@ -1,5 +1,5 @@
const Contribution = artifacts.require('Contribution.sol')
// const Contribution = artifacts.require('Contribution.sol');
contract('Contribution', (accounts) => {
it('should be tested')
})
contract('Contribution', (_accounts) => {
it('should be tested');
});

View File

@@ -1,5 +1,5 @@
const Contributor = artifacts.require('Contributor.sol')
// const Contributor = artifacts.require('Contributor.sol');
contract('Contributor', (accounts) => {
it('should be tested')
})
contract('Contributor', (_accounts) => {
it('should be tested');
});

View File

@@ -1,5 +1,5 @@
const Proposal = artifacts.require('Proposal.sol')
// const Proposal = artifacts.require('Proposal.sol');
contract('Proposal', (accounts) => {
it('should be tested')
})
contract('Proposal', (_accounts) => {
it('should be tested');
});

View File

@@ -1,5 +1,5 @@
const Token = artifacts.require('Token.sol')
// const Token = artifacts.require('Token.sol');
contract('Token', (accounts) => {
it('should be tested')
})
contract('Token', (_accounts) => {
it('should be tested');
});