From 1e7c480f7b67e67266543098054574052c085e1a Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 22 Feb 2022 12:26:07 +0100 Subject: [PATCH] lint: set sourceType to 'script' This allows parsing `return;` outside of functions. --- .eslintrc.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index dc51e2748..edc9cc529 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,3 +1,6 @@ module.exports = { + parserOptions: { + sourceType: 'script' + }, extends: ['semistandard'] };