Skip to content

Commit 81abd87

Browse files
committed
Improve linting.
- 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.
1 parent 7b59028 commit 81abd87

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.eslintrc.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@ module.exports = {
99
'digitalbazaar'
1010
],
1111
parserOptions: {
12-
ecmaVersion: 5
12+
ecmaVersion: 5,
13+
sourceType: 'script'
1314
},
1415
rules: {
1516
// overrides to support ES5, remove when updated to ES20xx
1617
'no-unused-vars': 'warn',
1718
'no-var': 'off',
1819
'object-shorthand': 'off',
19-
'prefer-const': 'off'
20+
'prefer-const': 'off',
21+
// fix when code is globally reformatted
22+
'max-len': 'off'
2023
}
2124
};

0 commit comments

Comments
 (0)