Skip to content

Commit

Permalink
lint: set sourceType to 'script' (#1141)
Browse files Browse the repository at this point in the history
This allows parsing `return;` outside of functions.
  • Loading branch information
addaleax committed Feb 22, 2022
1 parent da8af20 commit 5e2c1f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
@@ -1,3 +1,6 @@
module.exports = {
parserOptions: {
sourceType: 'script'
},
extends: ['semistandard']
};

0 comments on commit 5e2c1f2

Please sign in to comment.