Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed Jan 3, 2019
1 parent 0f7fb25 commit 081a910
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = {
rules: {
'consistent-return': 'off',
'import/no-dynamic-require': 'off',
'import/no-extraneous-dependencies': ['error', { optionalDependencies: true }],
'global-require': 'off',
'no-bitwise': 'off',
'no-console': 'off',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/miscellaneous/prettier.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Prettier extends BaseChecker {
this.fileName = fileName
}

enterSourceUnit(ctx) {
enterSourceUnit() {
try {
// Check for optional dependencies with the try catch
// Prettier is expensive to load, so only load it if needed.
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"cosmiconfig": "^5.0.7",
"eslint": "^5.6.0",
"fast-diff": "^1.1.2",
"glob": "^7.1.3",
"ignore": "^4.0.6",
"js-yaml": "^3.12.0",
"lodash": "^4.17.11",
Expand Down
5 changes: 1 addition & 4 deletions solhint.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ function init() {
program
.usage('[options] <file> [...other_files]')
.option('-f, --formatter [name]', 'report formatter name (stylish, table, tap, unix)')
.option(
'-w, --max-warnings [maxWarningsNumber]',
'number of allowed warnings'
)
.option('-w, --max-warnings [maxWarningsNumber]', 'number of allowed warnings')
.option('-c, --config [file_name]', 'file to use as your .solhint.json')
.option('-q, --quiet', 'report errors only - default: false')
.option('--ignore-path [file_name]', 'file to use as your .solhintignore')
Expand Down
5 changes: 1 addition & 4 deletions test/rules/security/avoid-low-level-calls.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
const linter = require('./../../../lib/index')
const funcWith = require('./../../common/contract-builder').funcWith
const {
assertWarnsCount,
assertErrorMessage
} = require('./../../common/asserts')
const { assertWarnsCount, assertErrorMessage } = require('./../../common/asserts')

describe('Linter - avoid-low-level-calls', () => {
const LOW_LEVEL_CALLS = [
Expand Down

0 comments on commit 081a910

Please sign in to comment.