From 11351925462bdc97686ff4faa80b2d9d4e32312e Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Wed, 29 May 2019 13:22:38 +0200 Subject: [PATCH] Ensure ESLint treats modules as CJS not ESM --- .eslintrc.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 9eecfdb9f..5c9183b4c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -12,6 +12,9 @@ module.exports = { "react/require-extension": "off", "import/no-extraneous-dependencies": "off" }, + "parserOptions": { + "sourceType": "script", // Override ESM implied by airbnb + }, "env": { "mocha": true, "jest": true