Skip to content

Commit

Permalink
Improve linting.
Browse files Browse the repository at this point in the history
- Code is very out-of-date with proper style.
- Fix so it at least shows errors with modern eslint.
- Disable some rules with too many hits for current style.
  • Loading branch information
davidlehn committed Sep 2, 2020
1 parent 7b59028 commit 81abd87
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ module.exports = {
'digitalbazaar'
],
parserOptions: {
ecmaVersion: 5
ecmaVersion: 5,
sourceType: 'script'
},
rules: {
// overrides to support ES5, remove when updated to ES20xx
'no-unused-vars': 'warn',
'no-var': 'off',
'object-shorthand': 'off',
'prefer-const': 'off'
'prefer-const': 'off',
// fix when code is globally reformatted
'max-len': 'off'
}
};

0 comments on commit 81abd87

Please sign in to comment.