From 99fe5be8a9018341412a0e50e94f60ac06f5894b Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Tue, 16 Jun 2020 17:28:59 +0100 Subject: [PATCH] chore(eslint): move inline eslint rules into config file --- .eslintrc.json | 8 ++++++++ src/index.js | 2 -- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index b609c24f..8f1617da 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -33,6 +33,14 @@ } ], "prefer-destructuring": "off", + "promise/always-return": "off", + "promise/catch-or-return": [ + "error", + { + "allowThen": true + } + + ], "promise/prefer-await-to-then": "warn", "promise/prefer-await-to-callbacks": "warn" } diff --git a/src/index.js b/src/index.js index 9bb328c1..a611050b 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,3 @@ -/* eslint-disable promise/always-return */ -/* eslint-disable promise/catch-or-return */ const os = require('os'); const path = require('path'); const { execFile } = require('child_process');