Add contract test linting
This commit is contained in:
12
apps/.eslintrc.js
Normal file
12
apps/.eslintrc.js
Normal file
@@ -0,0 +1,12 @@
|
||||
module.exports = {
|
||||
'globals': {
|
||||
contract: true,
|
||||
describe: true,
|
||||
it: true,
|
||||
},
|
||||
rules: {
|
||||
'no-unused-vars': ['error', {
|
||||
'argsIgnorePattern': '^_',
|
||||
}],
|
||||
}
|
||||
}
|
||||
@@ -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');
|
||||
});
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user