From 81abd87a9a8ef705af17d1e712a086ef4b7869a1 Mon Sep 17 00:00:00 2001 From: "David I. Lehn" Date: Tue, 1 Sep 2020 19:46:05 -0400 Subject: [PATCH] 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. --- .eslintrc.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 11e4c6eb4..7fa4468b3 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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' } };