Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

byoass `no-unused-expressions` error

Jason Kent7798385660fc
diff --git a/.eslintrc b/.eslintrc
index aabda97be..832b1a268 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -82,7 +82,6 @@
"prefer-const": "warn",
"prefer-destructuring": "warn",
- "no-unused-expressions": "off",
"no-restricted-syntax": "off",
"no-useless-concat": "off",
"class-methods-use-this": "off",
@@ -127,7 +126,7 @@
"react/no-unused-prop-types": "warn", // 66 errors
"react/forbid-prop-types": "off", // 216 errors
"react/require-default-props": "off", // 965 errors
- "react/destructuring-assignment": "warn" // 464 errors
+ "react/destructuring-assignment": "off" // 464 errors
}
}
]
diff --git a/tasks/linkCheck.js b/tasks/linkCheck.js
index 9eb628d5b..441920877 100755
--- a/tasks/linkCheck.js
+++ b/tasks/linkCheck.js
@@ -26,6 +26,7 @@ const organizeURLStatus = async(scrapedUrls) => {
const now = new Date();
// Check for 'results' directory or make new one
+ // eslint-disable-next-line no-unused-expressions
fs.existsSync('./tasks/link-check/results') || fs.mkdirSync('./tasks/link-check/results');
const fileName = `./tasks/link-check/results/WV-link-check-${now.getFullYear()}-${now.getMonth() + 1}-${now.getDate()}.json`;