From 5e2c1f24f8ccf588d8713c11bf063dd68a737bbd Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 22 Feb 2022 16:13:54 +0100 Subject: [PATCH] lint: set sourceType to 'script' (#1141) 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'] };